示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User"/> class.
 /// </summary>
 /// <param name="accountData">Account data.</param>
 internal User(MantisConnectWebservice.AccountData accountData)
 {
     this.Id       = Convert.ToInt32(accountData.id);
     this.Name     = accountData.name;
     this.RealName = accountData.real_name;
     this.Email    = accountData.email;
 }
示例#2
0
        /// <summary>
        /// Converts this instance to the webservice proxy type.
        /// </summary>
        /// <returns>An equivalent object in the webservice proxy type.</returns>
        internal MantisConnectWebservice.AccountData ToWebservice()
        {
            MantisConnectWebservice.AccountData accountData = new MantisConnectWebservice.AccountData();
            accountData.id        = this.Id.ToString();
            accountData.name      = this.Name;
            accountData.real_name = this.RealName;
            accountData.email     = this.Email;

            return(accountData);
        }
示例#3
0
        /// <summary>
        /// Converts this instance to the webservice proxy type.
        /// </summary>
        /// <returns>An equivalent object in the webservice proxy type.</returns>
		internal MantisConnectWebservice.AccountData ToWebservice()
		{
			MantisConnectWebservice.AccountData accountData = new MantisConnectWebservice.AccountData();
			accountData.id = this.Id.ToString();
			accountData.name = this.Name;
			accountData.real_name = this.RealName;
			accountData.email = this.Email;

			return accountData;
		}