-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathGoogleDataSettings.cs
More file actions
72 lines (62 loc) · 2.26 KB
/
GoogleDataSettings.cs
File metadata and controls
72 lines (62 loc) · 2.26 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
///////////////////////////////////////////////////////////////////////////////
///
/// GoogleDataSettings.cs
///
/// (c)2013 Kim, Hyoun Woo
///
///////////////////////////////////////////////////////////////////////////////
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;
using System.Collections.Generic;
namespace UnityQuickSheet
{
/// <summary>
/// A class manages google account setting.
/// </summary>
[CreateAssetMenu(menuName = "QuickSheet/Setting/GoogleData Setting")]
public class GoogleDataSettings : SingletonScriptableObject<GoogleDataSettings>
{
// A flag which indicates use local installed oauth2 json file for authentication or not.
static public bool useOAuth2JsonFile = false;
public string JsonFilePath
{
get { return jsonFilePath; }
set
{
if (string.IsNullOrEmpty(value) == false)
jsonFilePath = value;
}
}
private string jsonFilePath = string.Empty;
/// <summary>
/// A default path where .txt template files are.
/// </summary>
public string TemplatePath = "QuickSheet/GDataPlugin/Templates";
/// <summary>
/// A path where generated ScriptableObject derived class and its data class script files are to be put.
/// </summary>
public string RuntimePath = string.Empty;
/// <summary>
/// A path where generated editor script files are to be put.
/// </summary>
public string EditorPath = string.Empty;
[System.Serializable]
public struct OAuth2JsonData
{
public string client_id;
public string auth_uri;
public string token_uri;
public string auth_provider_x509_cert_url;
public string client_secret;
public List<string> redirect_uris;
};
public OAuth2JsonData OAuth2Data;
// enter Access Code after getting it from auth url
public string _AccessCode = "Paste AcecessCode here!";
// enter Auth 2.0 Refresh Token and AccessToken after succesfully authorizing with Access Code
public string _RefreshToken = "";
public string _AccessToken = "";
}
}