/// <summary> /// Converts the current object into the Webservice object. /// </summary> /// <returns> /// Webservice object reference /// </returns> internal MantisConnectWebservice.ObjectRef ToWebservice() { MantisConnectWebservice.ObjectRef wsor = new MantisConnectWebservice.ObjectRef(); wsor.id = Id.ToString(); wsor.name = Name; return(wsor); }
/// <summary> /// Constructor from webservice object ref object. /// </summary> /// <param name="objRefFromWs"> /// Object reference from webservice /// </param> public ObjectRef(MantisConnectWebservice.ObjectRef objRefFromWs) { if (objRefFromWs != null) { this.Id = Convert.ToInt32(objRefFromWs.id); this.Name = objRefFromWs.name; } else { this.Id = 0; this.Name = string.Empty; } }
/// <summary> /// Converts the current object into the Webservice object. /// </summary> /// <returns>Webservice object reference</returns> internal MantisConnectWebservice.ObjectRef ToWebservice() { MantisConnectWebservice.ObjectRef wsor = new MantisConnectWebservice.ObjectRef(); wsor.id = Id.ToString(); wsor.name = Name; return wsor; }