Esempio n. 1
0
 public User(int id, string email, string password, User_Data[] userData)
 {
     this.id = id;
     this.password = password;
     this.email = email;
     this.userData = userData;
 }
        public Response<User_Data> postUserData(User_Data userData)
        {
            IncomingWebRequestContext requestContext = WebOperationContext.Current.IncomingRequest;

            Dictionary<string, string> data = new Dictionary<string, string>();

            string authString = requestContext.Headers[HttpRequestHeader.Authorization];

            data.Add("user_account_id", userData.userId.ToString());
            data.Add("name", userData.userDataType);
            data.Add("value", userData.value);

            Request request = makeRequest(requestContext, trimData(data), authString);

            UserDataController controller = new UserDataController();

            return controller.Call(request);
        }