/// <summary> /// Delete an object of type <code>Post</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an Post object.</param> /// <param name="parameters">additional parameters</param> /// <returns> A Post object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static Post Delete(String id, RequestMap parameters) { RequestMap map = new RequestMap(); map.Set("id", id); map.AddAll(parameters); return(BaseObject.Execute("dff1a901-b80d-4cdf-a04b-ae5b084f95fb", new Post(map))); }
/// <summary> /// Delete an object of type <code>User</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an User object.</param> /// <param name="parameters">additional parameters</param> /// <returns> A User object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static User delete204(String id, RequestMap parameters) { RequestMap map = new RequestMap(); map.Set("id", id); map.AddAll(parameters); return(BaseObject.Execute("1bce28cd-c900-41b6-ac86-3232903ada1f", new User(map))); }
/// <summary> /// Delete an object of type <code>User</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an User object.</param> /// <param name="parameters">additional parameters</param> /// <returns> A User object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static User delete200(String id, RequestMap parameters) { RequestMap map = new RequestMap(); map.Set("id", id); map.AddAll(parameters); return(BaseObject.Execute("f6048a68-7ad7-46a4-8bd9-670641c219ac", new User(map))); }
/// <summary> /// Delete an object of type <code>User</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an User object.</param> /// <param name="parameters">additional parameters</param> /// <returns> A User object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static User Delete(String id, RequestMap parameters) { RequestMap map = new RequestMap(); map.Set("id", id); map.AddAll(parameters); return(BaseObject.Execute("db10ab01-2198-4abf-ade1-3868cfb3d01c", new User(map))); }
/// <summary> /// Delete an object of type <code>MultiplePathUserPost</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an MultiplePathUserPost object.</param> /// <param name="parameters">additional parameters</param> /// <returns> A MultiplePathUserPost object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static MultiplePathUserPost Delete(String id, RequestMap parameters) { RequestMap map = new RequestMap(); map.Set("id", id); map.AddAll(parameters); return(BaseObject.Execute("84910aee-b8c5-4d86-b84c-0dc822e6937d", new MultiplePathUserPost(map))); }
/// <summary> /// Retrieves one object of type <code>Post</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an Post object.</param> /// <param name = "parameters">This is the optional paramter which can be passed to the request.</param> /// <returns> A Post object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static Post doFind(String id, RequestMap parameters = null) { RequestMap map = new RequestMap(); map.Set("id", id); if (parameters != null && parameters.Count > 0) { map.AddAll(parameters); } return((Post)BaseObject.readObject(new Post(map))); }
/// <summary> /// Retrieves one object of type <code>Post</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an Post object.</param> /// <param name = "parameters">This is the optional parameter which can be passed to the request.</param> /// <returns> A Post object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static Post Read(String id, RequestMap parameters = null) { RequestMap map = new RequestMap(); map.Set("id", id); if (parameters != null && parameters.Count > 0) { map.AddAll(parameters); } return(BaseObject.Execute("5347cde5-c964-43dc-b316-8f53d0c662c5", new Post(map))); }
/// <summary> /// Retrieves one object of type <code>User</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an User object.</param> /// <param name = "parameters">This is the optional parameter which can be passed to the request.</param> /// <returns> A User object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static User Read(String id, RequestMap parameters = null) { RequestMap map = new RequestMap(); map.Set("id", id); if (parameters != null && parameters.Count > 0) { map.AddAll(parameters); } return(BaseObject.Execute("008b48e2-a8b1-47ab-9b2d-6228a61d5dee", new User(map))); }
/// <summary> /// Retrieves one object of type <code>User</code> /// </summary> /// <param name="id">The unique identifier which is used to identify an User object.</param> /// <param name = "parameters">This is the optional paramter which can be passed to the request.</param> /// <returns> A User object </returns> /// <exception cref="ApiCommunicationException"> </exception> /// <exception cref="AuthenticationException"> </exception> /// <exception cref="InvalidRequestException"> </exception> /// <exception cref="NotAllowedException"> </exception> /// <exception cref="ObjectNotFoundException"> </exception> /// <exception cref="SystemException"> </exception> public static User Read(String id, RequestMap parameters = null) { RequestMap map = new RequestMap(); map.Set("id", id); if (parameters != null && parameters.Count > 0) { map.AddAll(parameters); } return(BaseObject.Execute("read", new User(map))); }
public void TestAddAll() { RequestMap map = new RequestMap(); Dictionary <String, Object> tmpDict = new Dictionary <String, Object> (); tmpDict.Add("user.name", "andrea"); tmpDict.Add("user.surname", "rizzini"); map.AddAll(tmpDict); Assert.AreEqual(1, map.Count); Assert.IsTrue(map.ContainsKey("user")); Assert.IsTrue(map.ContainsKey("user.name")); Assert.IsTrue(map.ContainsKey("user.surname")); Assert.AreEqual("andrea", map ["user.name"]); Assert.AreEqual("rizzini", map ["user.surname"]); }