Advertisement
Guest User

Untitled

a guest
Apr 18th, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.03 KB | None | 0 0
  1. // Code generated by Microsoft (R) AutoRest Code Generator 0.9.7.0
  2. // Changes may cause incorrect behavior and will be lost if the code is regenerated.
  3.  
  4. using System;
  5. using System.Linq;
  6. using Newtonsoft.Json.Linq;
  7.  
  8. namespace Iris.Identity.Client.Models
  9. {
  10.     public partial class CreateUserRequest
  11.     {
  12.  
  13.         private string _username;
  14.        
  15.         /// <summary>
  16.         /// Optional.
  17.         /// </summary>
  18.         public string Username
  19.         {
  20.             get { return this._username; }
  21.             set { this._username = value; }
  22.         }
  23.  
  24.         private string _password;
  25.  
  26.         /// <summary>
  27.         /// Optional.
  28.         /// </summary>
  29.         public string Password
  30.         {
  31.             get { return this._password; }
  32.             set { this._password = value; }
  33.         }
  34.  
  35.         private string _email;
  36.  
  37.         /// <summary>
  38.         /// Optional.
  39.         /// </summary>
  40.         public string Email
  41.         {
  42.             get { return this._email; }
  43.             set { this._email = value; }
  44.         }
  45.  
  46.         /// <summary>
  47.         /// Initializes a new instance of the CreateUserRequest class.
  48.         /// </summary>
  49.         public CreateUserRequest()
  50.         {
  51.         }
  52.        
  53.         /// <summary>
  54.         /// Serialize the object
  55.         /// </summary>
  56.         /// <returns>
  57.         /// Returns the json model for the type CreateUserRequest
  58.         /// </returns>
  59.         public virtual JToken SerializeJson(JToken outputObject)
  60.         {
  61.             if (outputObject == null)
  62.             {
  63.                 outputObject = new JObject();
  64.             }
  65.             if (this.Username != null)
  66.             {
  67.                 outputObject["Username"] = this.Username;
  68.             }
  69.             if (this.Password != null)
  70.             {
  71.                 outputObject["Password"] = this.Password;
  72.             }
  73.             if (this.Email != null)
  74.             {
  75.                 outputObject["Email"] = this.Email;
  76.             }
  77.             return outputObject;
  78.         }
  79.     }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement