Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
        string MapAccessibilityType(LinkAccessibility value)
        {
            switch (value)
            {
            case LinkAccessibility.Domain:
                return("domain");

            case LinkAccessibility.Password:
                return("password");

            case LinkAccessibility.Recipients:
                return("recipients");

            default:
                return("anyone");
            }
        }
Esempio n. 5
0
 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;
 }