-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFireBaseStorage.cs
More file actions
41 lines (33 loc) · 1.22 KB
/
Copy pathFireBaseStorage.cs
File metadata and controls
41 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace SharpFireStarter
{
class FireBaseStorage
{
//Stored Variables
private string storageURL { get; set; }
private string webAPIKey { get; set; }
private string oAuthToken { get; set; }
public User currentUser { get; set; }
/// <summary>
/// Initialize FirebaseConnector with AppID and WebAPI Key (Found on your Firebase Console Online)
/// </summary>
/// <param name="appID"></param>
public FireBaseStorage(string appID, string storageURL, string webAPIKey)
{
if (!Uri.IsWellFormedUriString(appID, UriKind.RelativeOrAbsolute))
throw new UriFormatException("The given AppID URL Structure is not valid");
this.storageURL = storageURL;
this.webAPIKey = webAPIKey;
Logger.Log("Initialized with AppID " + appID);
}
//public string Upload(Stream inputFile, string fileName)
//{
// if (inputFile == null || fileName == null)
// throw new Exception("Required input file information was not provided");
// Upload
//}
}
}