-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OF-293 Implement player delete method
- Loading branch information
Showing
2 changed files
with
356 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
/* | ||
* Openfort API | ||
* | ||
* Complete Openfort API references and guides can be found at: https://openfort.xyz/docs | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* Contact: founders@openfort.xyz | ||
* 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 FileParameter = Openfort.SDK.Client.FileParameter; | ||
using OpenAPIDateConverter = Openfort.SDK.Client.OpenAPIDateConverter; | ||
|
||
namespace Openfort.SDK.Model | ||
{ | ||
/// <summary> | ||
/// PlayerDeleteResponse | ||
/// </summary> | ||
[DataContract(Name = "PlayerDeleteResponse")] | ||
public partial class PlayerDeleteResponse : IEquatable<PlayerDeleteResponse>, IValidatableObject | ||
{ | ||
|
||
/// <summary> | ||
/// Gets or Sets Object | ||
/// </summary> | ||
[DataMember(Name = "object", IsRequired = true, EmitDefaultValue = true)] | ||
public EntityTypePLAYER Object { get; set; } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PlayerDeleteResponse" /> class. | ||
/// </summary> | ||
[JsonConstructorAttribute] | ||
protected PlayerDeleteResponse() { } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PlayerDeleteResponse" /> class. | ||
/// </summary> | ||
/// <param name="id">id (required).</param> | ||
/// <param name="_object">_object (required).</param> | ||
/// <param name="deleted">deleted (required).</param> | ||
public PlayerDeleteResponse(string id = default(string), EntityTypePLAYER _object = default(EntityTypePLAYER), bool deleted = default(bool)) | ||
{ | ||
// to ensure "id" is required (not null) | ||
if (id == null) | ||
{ | ||
throw new ArgumentNullException("id is a required property for PlayerDeleteResponse and cannot be null"); | ||
} | ||
this.Id = id; | ||
this.Object = _object; | ||
this.Deleted = deleted; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or Sets Id | ||
/// </summary> | ||
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets Deleted | ||
/// </summary> | ||
[DataMember(Name = "deleted", IsRequired = true, EmitDefaultValue = true)] | ||
public bool Deleted { get; set; } | ||
|
||
/// <summary> | ||
/// Returns the string presentation of the object | ||
/// </summary> | ||
/// <returns>String presentation of the object</returns> | ||
public override string ToString() | ||
{ | ||
StringBuilder sb = new StringBuilder(); | ||
sb.Append("class PlayerDeleteResponse {\n"); | ||
sb.Append(" Id: ").Append(Id).Append("\n"); | ||
sb.Append(" Object: ").Append(Object).Append("\n"); | ||
sb.Append(" Deleted: ").Append(Deleted).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public virtual string ToJson() | ||
{ | ||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if objects are equal | ||
/// </summary> | ||
/// <param name="input">Object to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public override bool Equals(object input) | ||
{ | ||
return this.Equals(input as PlayerDeleteResponse); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if PlayerDeleteResponse instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of PlayerDeleteResponse to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(PlayerDeleteResponse input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.Id == input.Id || | ||
(this.Id != null && | ||
this.Id.Equals(input.Id)) | ||
) && | ||
( | ||
this.Object == input.Object || | ||
this.Object.Equals(input.Object) | ||
) && | ||
( | ||
this.Deleted == input.Deleted || | ||
this.Deleted.Equals(input.Deleted) | ||
); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the hash code | ||
/// </summary> | ||
/// <returns>Hash code</returns> | ||
public override int GetHashCode() | ||
{ | ||
unchecked // Overflow is fine, just wrap | ||
{ | ||
int hashCode = 41; | ||
if (this.Id != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Id.GetHashCode(); | ||
} | ||
hashCode = (hashCode * 59) + this.Object.GetHashCode(); | ||
hashCode = (hashCode * 59) + this.Deleted.GetHashCode(); | ||
return hashCode; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// To validate all properties of the instance | ||
/// </summary> | ||
/// <param name="validationContext">Validation context</param> | ||
/// <returns>Validation Result</returns> | ||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) | ||
{ | ||
yield break; | ||
} | ||
} | ||
|
||
} |