public UsersDAO() { //init RESThelper restHelper = new RESThelper("https://api.parse.com/1/", new Dictionary <string, string>()); restHelper.AddHeader("X-Parse-Application-Id", "zs5W1kr9RMFlrHaTLrkY8Rxz8W44TXbhZ8TPvdzq"); restHelper.AddHeader("X-Parse-REST-API-Key", "ZVekLieNrfFwb9H6dCiYZaOr5dlMPw01VY1Zlvgr"); }
// Use this for initialization void Start() { path = Directory.GetCurrentDirectory(); Debug.LogError("GUIPatcher - current working dir:" + path); #if UNITY_EDITOR Debug.Log("GUIPatcher - unity editor mode!"); #elif UNITY_STANDALONE_WIN && PATCHER_ENABLE if (!path.Contains("\\deploy")) { path = path + "\\deploy"; } path = path + @"\virbela_Data\Plugins\"; RESThelper.DownloadFile(CommunicationManager.patchFileUrl, path + "test.zip"); ZipHelper.Unzip(path + "test.zip", path); #elif UNITY_STANDALONE_OSX && UNITY_EDITOR && PATCHER_ENABLE path = "/Applications/Unity/Unity.app/Contents/Frameworks/Awesomium.framework/Versions/Current/"; RESThelper.DownloadFile(CommunicationManager.patchFileUrl, path + "test.zip"); ZipHelper.Unzip(path + "test.zip", path); #elif UNITY_STANDALONE_OSX && PATCHER_ENABLE path = path + "/virbela.app/Contents/Frameworks/Awesomium.framework/Versions/Current/"; RESThelper.DownloadFile(CommunicationManager.patchFileUrl, path + "test.zip"); ZipHelper.Unzip(path + "test.zip", path); #endif Debug.LogError("GUIPatcher - destination dir:" + path); }
public ParseDAO(string name, bool createObjectIfDoesnotExist = true) { parseClassName = name; //init RESThelper restHelper = new RESThelper("https://api.parse.com/1/", new Dictionary <string, string>()); restHelper.AddHeader("X-Parse-Application-Id", "zs5W1kr9RMFlrHaTLrkY8Rxz8W44TXbhZ8TPvdzq"); restHelper.AddHeader("X-Parse-REST-API-Key", "ZVekLieNrfFwb9H6dCiYZaOr5dlMPw01VY1Zlvgr"); if (createObjectIfDoesnotExist) { Create(); } }