public static OneDriveStorageProviderUser FromJSON(JObject userJSON)
        {
            string displayName       = userJSON["displayName"].Value <string>();
            string userPrincipalName = userJSON["userPrincipalName"].Value <string>();

            return(CloudStorageProviderUserBase.Create <OneDriveStorageProviderUser>(
                       displayName,
                       userPrincipalName,
                       String.Empty));
        }
예제 #2
0
 public static DropboxStorageProviderUser FromFullAccount(FullAccount fullAccount)
 {
     return(CloudStorageProviderUserBase.Create <DropboxStorageProviderUser>(fullAccount.Name.DisplayName,
                                                                             fullAccount.Email,
                                                                             fullAccount.ProfilePhotoUrl));
 }