12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using Google.Apis.Auth.OAuth2;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDF_Master.Model.CloudDrive
- {
- //云盘信息
- public enum CloudType
- {
- Box,
- DropBox,
- GoogleDrive,
- OneDrive
- }
- public class CloudBoxItem
- {
- public CloudType CloudDiskType { get; set; }
- public List<UserCredential> UserCredentials { get; set; }
- public string UsersInfoPath { get; set; }
- public int Id { get; set; }
- public string DriveName { get; private set; }
- public CloudBoxItem(CloudType cloudDiskType)
- {
- CloudDiskType = cloudDiskType;
- GetName(CloudDiskType);
- }
- private void GetName(CloudType cloudDiskType)
- {
- switch (cloudDiskType)
- {
- case CloudType.Box:
- DriveName = "Box";
- break;
- case CloudType.DropBox:
- DriveName = "DropBox";
- break;
- case CloudType.GoogleDrive:
- DriveName = "Google Drive";
- break;
- case CloudType.OneDrive:
- DriveName = "OneDrive";
- break;
- }
- }
- }
- }
|