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)); }
public static DropboxStorageProviderUser FromFullAccount(FullAccount fullAccount) { return(CloudStorageProviderUserBase.Create <DropboxStorageProviderUser>(fullAccount.Name.DisplayName, fullAccount.Email, fullAccount.ProfilePhotoUrl)); }