Codemaru 1.0.0.0
QR 코드, 모바일 랜딩 페이지, vCard 연락처 저장과 명함 디자인을 한 화면에서 제공하는 디지털 명함 서비스입니다.
로딩중...
검색중...
일치하는것 없음
CardHybridState.cs
이 파일의 문서화 페이지로 가기
2
4
53public sealed record CardHybridState(
54 CardProfile Profile,
55 string QrPayload,
56 string QrSvg,
57 IReadOnlyList<CardHistoryEntry> History,
58 DateTime LastUpdated)
59{
84 public static CardHybridState CreateDefault(string qrSvg)
85 {
86 var profile = CardProfile.Default;
87
88 return Create(profile, qrSvg, Array.Empty<CardHistoryEntry>());
89 }
90
132 public static CardHybridState Create(CardProfile profile, string qrSvg, IReadOnlyList<CardHistoryEntry> history)
133 {
134 return new CardHybridState(
135 Profile: profile,
136 QrPayload: profile.LandingUrl,
137 QrSvg: qrSvg,
138 History: history,
139 LastUpdated: DateTime.Now);
140 }
141}
record CardProfile(string Brand, string Tagline, string BackBrand, string BackTagline, string Category, string Name, string Role, string Email, string Phone, string Address, string Website, string LandingSlug, string AccentColor, string ShortBio, string LandingDescription, string VCardNote, string InternalMemo, string? LogoImageDataUrl, bool RemoveLogoBackground, double CardWidthMm, double CardHeightMm, string FrontFontFamily, string BackFontFamily, double FrontBrandFontSize, double FrontTaglineFontSize, double FrontCategoryFontSize, double FrontEmailFontSize, double BackBrandFontSize, double BackTaglineFontSize, double BackNameFontSize, double BackRoleFontSize, string LandingTheme, bool IncludePhoneInVCard, bool IncludeAddressInVCard, string? ImportedFrontImageDataUrl, string? ImportedBackImageDataUrl)
record CardHistoryEntry(Guid Id, CardProfile Profile, string LandingUrl, string QrPayload, DateTime CreatedAt)