private void ShareCompleted(ShareStatus status, string message)
 {
     Finish();
     if (fbShareResultComplete != null)
     {
         fbShareResultComplete.Invoke(new FBShareResult {
             Status = status, Message = message
         });
     }
 }
        internal static string ToSerializedValue(this ShareStatus value)
        {
            switch (value)
            {
            case ShareStatus.Online:
                return("Online");

            case ShareStatus.Offline:
                return("Offline");
            }
            return(null);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the FileShare class.
 /// </summary>
 /// <param name="shareStatus">The Share Status. Possible values
 /// include: 'Online', 'Offline'</param>
 /// <param name="dataPolicy">The data policy. Possible values include:
 /// 'Invalid', 'Local', 'Tiered', 'Cloud'</param>
 /// <param name="adminUser">The user/group who will have full
 /// permission in this share. Active directory email address. Example:
 /// [email protected] or Contoso\xyz.</param>
 /// <param name="provisionedCapacityInBytes">The total provisioned
 /// capacity in Bytes</param>
 /// <param name="monitoringStatus">The monitoring status. Possible
 /// values include: 'Enabled', 'Disabled'</param>
 /// <param name="id">The identifier.</param>
 /// <param name="name">The name.</param>
 /// <param name="type">The type.</param>
 /// <param name="description">Description for file share</param>
 /// <param name="usedCapacityInBytes">The used capacity in
 /// Bytes.</param>
 /// <param name="localUsedCapacityInBytes">The local used capacity in
 /// Bytes.</param>
 public FileShare(ShareStatus shareStatus, DataPolicy dataPolicy, string adminUser, long provisionedCapacityInBytes, MonitoringStatus monitoringStatus, string id = default(string), string name = default(string), string type = default(string), string description = default(string), long?usedCapacityInBytes = default(long?), long?localUsedCapacityInBytes = default(long?))
     : base(id, name, type)
 {
     Description = description;
     ShareStatus = shareStatus;
     DataPolicy  = dataPolicy;
     AdminUser   = adminUser;
     ProvisionedCapacityInBytes = provisionedCapacityInBytes;
     UsedCapacityInBytes        = usedCapacityInBytes;
     LocalUsedCapacityInBytes   = localUsedCapacityInBytes;
     MonitoringStatus           = monitoringStatus;
     CustomInit();
 }