public Hub(Credentials credentials, string hubName) { if (hubName == null) { throw new System.ArgumentException(MessageConfig.NULL_HUBNAME_EXCEPTION_MSG); } if (credentials == null) { throw new System.ArgumentException(MessageConfig.NULL_CREDENTIALS_EXCEPTION_MSG); } mCredentials = credentials; mHubName = hubName; }
public StreamList(JObject jsonObj, Credentials auth) { this.marker = jsonObj["marker"].ToString(); Console.WriteLine("this.marker-----" + this.marker); try { JToken record = jsonObj["items"]; itemList = new List <Stream>(); foreach (JObject jp in record) { itemList.Add(new Stream(JObject.Parse(jp.ToString()), auth)); } } catch (System.InvalidCastException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } }
public Stream(JObject jsonObject, Credentials credentials) : this(jsonObject) { mCredentials = credentials; }
public StreamList(JObject jsonObj, Credentials auth) { this.marker = jsonObj["marker"].ToString(); Console.WriteLine("this.marker-----" + this.marker); try { JToken record = jsonObj["items"]; itemList = new List<Stream>(); foreach (JObject jp in record) { itemList.Add(new Stream(JObject.Parse(jp.ToString()), auth)); } } catch (System.InvalidCastException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } }
public Hub(string accessKey, string secretKey, string hubName) { mCredentials = new Credentials(accessKey, secretKey); mHubName = hubName; }