static void Main(string[] args) { Console.WriteLine("Rightsline V3 Demo App"); ConfigSetup.GetConfigFile(); //Replace the following IDs with your own //Console.WriteLine(RestClient.GetTableMethod("1890")); //Console.WriteLine(RestClient.GetCatalogItemMethod("1541")); var jsonObject = File.ReadAllText("Catalog Item Example JSON/CatalogItemEpisodePOST.json"); //var encodedJsonBytes = Encoding.UTF8.GetBytes("{ \"parentRelationship\": null, \"revisionId\": 0, \"title\": \"Example Episode POST\", \"template\": { \"fields\": null, \"templateId\": 13, \"templateName\": \"Episode\", \"processID\": 0, \"processName\": \"null\" }, \"status\": { \"statusId\": 1, \"statusName\": \"Development\" }, \"characteristics\": { \"format\": \"HDCAM\", \"genre\": [\"Action\", \"Adventure\", \"Animation\"], \"file_format_type\": \"SD\", \"subtitle_format\": \"EIA - 708(DTVCC Transport) text stream\", \"subtitle_language\": \"English(US)\", \"original_air_date\": \"06 / 25 / 2018\", \"release_date\": \"06 / 27 / 2018\" }}"); //var encodedJsonBytes = Encoding.UTF8.GetBytes("test string 123"); var encodedJsonBytes = Encoding.UTF8.GetBytes(jsonObject); string test = ""; foreach (byte b in encodedJsonBytes) { test += b; } var hashedJsonString = RestClient.ComputeSHA256Hash(encodedJsonBytes); Console.WriteLine(hashedJsonString); //Console.WriteLine("New Episode created with id: " + RestClient.PostCatalogItemMethod("Catalog Item Example JSON/CatalogItemEpisodePOST.json")); //Console.WriteLine(RestClient.DeleteCatalogItemMethod("1547")); //Console.WriteLine(RestClient.UpdateCatalogItemMethod("1542", "Catalog Item Example JSON/CatalogItemEpisodePUT.json")); //Console.WriteLine(RestClient.PostRelationshipMethod("Relationship Example JSON/RelationshipPost.json")); }
private RestaurantBuilder() { this.configData = ConfigSetup.GetInstance(); this.configData.RunFoodConfigSetup(); this.InitMenuBuilder(); this.setupComplete = true; }
static void Main(string[] args) { ConfigSetup.GetConfigFile(); //These IDs are for our QA database, change them int featureID = 1565; int episodeID = 1555; int deleteID = 1591; Console.WriteLine("Rightsline Demo v0.0.1"); Console.WriteLine(""); //string CatalogItemGetJson = RestClient.GetCatalogItemDemoMethod(1587).Result; //Console.WriteLine(CatalogItemGetJson); //string CatalogItemPostID = RestClient.PostCatalogItemDemoMethod().Result; //Console.WriteLine("New Catalog Item ID: " + CatalogItemPostID); //string getTableResult = RestClient.GetTable(2340).Result; //Console.WriteLine(getTableResult); //string postTableResult = RestClient.PostTable().Result; //Console.WriteLine(postTableResult); //string putTableResult = RestClient.PutTable(2340).Result; //Console.WriteLine(putTableResult); //string deleteTable = RestClient.DeleteTable(2340).Result; //Console.WriteLine(deleteTable); //string getRelationships = RestClient.GetRelationships().Result; //Console.WriteLine(getRelationships); //string post = RestClient.PostRelationships().Result; string post = RestClient.PostTable().Result; Console.WriteLine(post); }
/**** Coroutine ****/ IEnumerator WaitForGameManagerAndConfig() { while (this.gameManager == null || this.config == null || this.monthBuilder == null) { this.gameManager = GameManager.GetInstance(); this.config = ConfigSetup.GetInstance(); this.monthBuilder = MonthBuilder.GetInstance(); yield return(null); } InitBackgroundSetup(); }
MonthBuilder() { this.config = ConfigSetup.GetInstance(); this.monthData = this.config.GetMonthData(); GetMonthPrefabs(); }
private void Awake() { this.gameManager = GameManager.GetInstance(); this.config = ConfigSetup.GetInstance(); }
private FtpSettings GetFtpSettings() { RouteAttributes route = new RouteAttributes($"ftp://*****:*****@127.0.0.1/out&Delete=true&PollTime=5000"); return(new FtpSettings(ConfigSetup.ToFromConfig(route.Headers))); }
private void Awake() { this.configData = ConfigSetup.GetInstance(); this.customerImage = gameObject.GetComponent <Image>(); }