/*
* 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
{
///
/// LeaderboardItem
///
[DataContract(Name = "LeaderboardItem")]
public partial class LeaderboardItem : IValidatableObject
{
///
/// Initializes a new instance of the class.
///
/// name.
/// displayName.
/// photoUrl.
/// level.
/// experience.
/// points.
public LeaderboardItem(string name = default(string), string displayName = default(string), string photoUrl = default(string), int level = default(int), double experience = default(double), double points = default(double))
{
this.Name = name;
this.DisplayName = displayName;
this.PhotoUrl = photoUrl;
this.Level = level;
this.Experience = experience;
this.Points = points;
}
///
/// 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 PhotoUrl
///
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
public string PhotoUrl { 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 Points
///
[DataMember(Name = "points", EmitDefaultValue = false)]
public double Points { 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 LeaderboardItem {\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n");
sb.Append(" Level: ").Append(Level).Append("\n");
sb.Append(" Experience: ").Append(Experience).Append("\n");
sb.Append(" Points: ").Append(Points).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;
}
}
}