using System.Collections.Generic; using System.IO; namespace ShareX.UploadersLib.FileUploaders { public class GoogleCloudStorageNewFileUploaderService : FileUploaderService { public override FileDestination EnumValue { get; } = FileDestination.GoogleCloudStorage; public override bool CheckConfig(UploadersConfig config) { return true; } public override GenericUploader CreateUploader(UploadersConfig config, TaskReferenceHelper taskInfo) { return new GoogleCloudStorage { APIKey = "null" }; } } public sealed class GoogleCloudStorage : FileUploader { public string APIKey { get; set; } public string bucket { get; set; } public override UploadResult Upload(Stream stream, string fileName) { string uploadurl = $"https://www.googleapis.com/upload/storage/v1/b/{bucket}/o"; string objecturl = $"https://www.googleapis.com/upload/storage/v1/b/{bucket}/o/{fileName}/acl"; Dictionary args = new Dictionary(); args.Add("key", APIKey); return null; } } }