/*
* Tribufu API
*
* REST API to access Tribufu services.
*
* The version of the OpenAPI document: 1.1.0
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
namespace Tribufu.Generated.Model
{
///
/// Profile
///
[DataContract(Name = "Profile")]
public partial class Profile : IValidatableObject
{
///
/// Initializes a new instance of the class.
///
/// id.
/// uuid.
/// name.
/// displayName.
/// verified.
/// level.
/// experience.
/// publicBirthday.
/// birthday.
/// points.
/// location.
/// photoUrl.
/// bannerUrl.
/// lastOnline.
/// biography.
/// viewCount.
/// created.
/// updated.
public Profile(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), bool verified = default(bool), int level = default(int), double experience = default(double), bool publicBirthday = default(bool), DateOnly? birthday = default(DateOnly?), double points = default(double), string location = default(string), string photoUrl = default(string), string bannerUrl = default(string), DateTime? lastOnline = default(DateTime?), string biography = default(string), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
{
this.Id = id;
this.Uuid = uuid;
this.Name = name;
this.DisplayName = displayName;
this.Verified = verified;
this.Level = level;
this.Experience = experience;
this.PublicBirthday = publicBirthday;
this.Birthday = birthday;
this.Points = points;
this.Location = location;
this.PhotoUrl = photoUrl;
this.BannerUrl = bannerUrl;
this.LastOnline = lastOnline;
this.Biography = biography;
this.ViewCount = viewCount;
this.Created = created;
this.Updated = updated;
}
///
/// Gets or Sets Id
///
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; set; }
///
/// Gets or Sets Uuid
///
[DataMember(Name = "uuid", EmitDefaultValue = false)]
public Guid Uuid { get; set; }
///
/// Gets or Sets Name
///
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
///
/// Gets or Sets DisplayName
///
[DataMember(Name = "display_name", EmitDefaultValue = true)]
public string DisplayName { get; set; }
///
/// Gets or Sets Verified
///
[DataMember(Name = "verified", EmitDefaultValue = true)]
public bool Verified { get; set; }
///
/// Gets or Sets Level
///
[DataMember(Name = "level", EmitDefaultValue = false)]
public int Level { get; set; }
///
/// Gets or Sets Experience
///
[DataMember(Name = "experience", EmitDefaultValue = false)]
public double Experience { get; set; }
///
/// Gets or Sets PublicBirthday
///
[DataMember(Name = "public_birthday", EmitDefaultValue = true)]
public bool PublicBirthday { get; set; }
///
/// Gets or Sets Birthday
///
[DataMember(Name = "birthday", EmitDefaultValue = true)]
public DateOnly? Birthday { get; set; }
///
/// Gets or Sets Points
///
[DataMember(Name = "points", EmitDefaultValue = false)]
public double Points { get; set; }
///
/// Gets or Sets Location
///
[DataMember(Name = "location", EmitDefaultValue = true)]
public string Location { get; set; }
///
/// Gets or Sets PhotoUrl
///
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
public string PhotoUrl { get; set; }
///
/// Gets or Sets BannerUrl
///
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
public string BannerUrl { get; set; }
///
/// Gets or Sets LastOnline
///
[DataMember(Name = "last_online", EmitDefaultValue = true)]
public DateTime? LastOnline { get; set; }
///
/// Gets or Sets Biography
///
[DataMember(Name = "biography", EmitDefaultValue = true)]
public string Biography { get; set; }
///
/// Gets or Sets ViewCount
///
[DataMember(Name = "view_count", EmitDefaultValue = false)]
public int ViewCount { get; set; }
///
/// Gets or Sets Created
///
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
///
/// Gets or Sets Updated
///
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
///
/// Returns the string presentation of the object
///
/// String presentation of the object
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class Profile {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
sb.Append(" Verified: ").Append(Verified).Append("\n");
sb.Append(" Level: ").Append(Level).Append("\n");
sb.Append(" Experience: ").Append(Experience).Append("\n");
sb.Append(" PublicBirthday: ").Append(PublicBirthday).Append("\n");
sb.Append(" Birthday: ").Append(Birthday).Append("\n");
sb.Append(" Points: ").Append(Points).Append("\n");
sb.Append(" Location: ").Append(Location).Append("\n");
sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n");
sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
sb.Append(" LastOnline: ").Append(LastOnline).Append("\n");
sb.Append(" Biography: ").Append(Biography).Append("\n");
sb.Append(" ViewCount: ").Append(ViewCount).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
///
/// Returns the JSON string presentation of the object
///
/// JSON string presentation of the object
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}