internal LinkDetails( string path, LinkType type, LinkAccessibility accessibility, bool notify, bool linkToCurrent, DateTime creationDate, string createdBy, ProtectionType protection, List <string> recipients, string url, string id) { Path = path; Type = type; Accessibility = accessibility; Notify = notify; LinkToCurrent = linkToCurrent; CreationDate = creationDate; CreatedBy = createdBy; Protection = protection; Recipients = recipients; Url = url; Id = id; }
internal LinkDetailsV2( string path, LinkType type, LinkAccessibility accessibility, bool notify, bool linkToCurrent, DateTime creationDate, string createdBy, ProtectionType protection, List <string> recipients, string url, string id, string resourceId, int expiry_clicks, DateTime expiry_date) : base( path, type, accessibility, notify, linkToCurrent, creationDate, createdBy, protection, recipients, url, id) { ResourceId = resourceId; ExpiryClicks = expiry_clicks; ExpiryDate = expiry_date; }
internal CreatedLink( List <Link> links, string path, LinkType type, LinkAccessibility accessibility, string password, bool notify, bool linkToCurrent, DateTime expiryDate, DateTime creationDate, string createdBy, bool sendMail, bool copyMe) { Links = links; Path = path; Type = type; Accessibility = accessibility; Password = password; Notify = notify; LinkToCurrent = linkToCurrent; ExpiryDate = expiryDate; CreationDate = creationDate; CreatedBy = createdBy; SendMail = sendMail; CopyMe = copyMe; }
string MapAccessibilityType(LinkAccessibility value) { switch (value) { case LinkAccessibility.Domain: return("domain"); case LinkAccessibility.Password: return("password"); case LinkAccessibility.Recipients: return("recipients"); default: return("anyone"); } }
internal CreatedLink( List <Link> links, string path, LinkType type, LinkAccessibility accessibility, bool notify, bool linkToCurrent, DateTime expiryDate, DateTime creationDate, string createdBy) { Links = links; Path = path; Type = type; Accessibility = accessibility; Notify = notify; LinkToCurrent = linkToCurrent; ExpiryDate = expiryDate; CreationDate = creationDate; CreatedBy = createdBy; }