Esempio n. 1
0
        public async Task <LiveEventRestObject> GetLiveEventAsync(string liveEventName)
        {
            string URL             = GenerateApiUrl(liveEventApiUrl, liveEventName);
            string responseContent = await GetObjectContentAsync(URL);

            return(LiveEventRestObject.FromJson(responseContent));
        }
Esempio n. 2
0
        public async Task <string> CreateLiveEventAsync(LiveEventRestObject liveEventSettings, bool startLiveEventNow)
        {
            string URL             = GenerateApiUrl(liveEventApiUrl, liveEventSettings.Name) + string.Format("&autoStart={0}", startLiveEventNow.ToString());
            string responseContent = await CreateObjectAsync(URL, liveEventSettings.ToJson());

            return(responseContent);
        }