Exemplo n.º 1
0
        public ZumoRequest(AppServiceClient client, string url, Method httpMethod) : base(url, httpMethod)
        {
            this.AddHeader("ZUMO-API-VERSION", "2.0.0");
            this.AddHeader("Accept", "application/json");
            this.AddHeader("Content-Type", "application/json; charset=utf-8");

            if (client.User != null && !string.IsNullOrEmpty(client.User.authenticationToken))
            {
                this.AddHeader("X-ZUMO-AUTH", client.User.authenticationToken);
                Debug.Log("Auth UserId:" + client.User.user.userId);
            }
        }
 public MobileServiceTable(string tableName, AppServiceClient client)
 {
     _client = client;
     _name   = tableName;           // NB: The table name could be infered from the Table's DataModel using typeof(E).Name; but passing Table name as a string allows for the case when the Classname is not the same as the Table name.
 }