-
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-256 Implemented support of auth with playfab
- Loading branch information
Showing
16 changed files
with
1,373 additions
and
80 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
141 changes: 141 additions & 0 deletions
141
Openfort.SDK/Generated/Model/AuthenticatedPlayerResponse.cs
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,141 @@ | ||
/* | ||
* 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> | ||
/// AuthenticatedPlayerResponse | ||
/// </summary> | ||
[DataContract(Name = "AuthenticatedPlayerResponse")] | ||
public partial class AuthenticatedPlayerResponse : IEquatable<AuthenticatedPlayerResponse>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="AuthenticatedPlayerResponse" /> class. | ||
/// </summary> | ||
[JsonConstructorAttribute] | ||
protected AuthenticatedPlayerResponse() { } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="AuthenticatedPlayerResponse" /> class. | ||
/// </summary> | ||
/// <param name="playerId">Player's identifier. (required).</param> | ||
public AuthenticatedPlayerResponse(string playerId = default(string)) | ||
{ | ||
// to ensure "playerId" is required (not null) | ||
if (playerId == null) | ||
{ | ||
throw new ArgumentNullException("playerId is a required property for AuthenticatedPlayerResponse and cannot be null"); | ||
} | ||
this.PlayerId = playerId; | ||
} | ||
|
||
/// <summary> | ||
/// Player's identifier. | ||
/// </summary> | ||
/// <value>Player's identifier.</value> | ||
[DataMember(Name = "playerId", IsRequired = true, EmitDefaultValue = true)] | ||
public string PlayerId { 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 AuthenticatedPlayerResponse {\n"); | ||
sb.Append(" PlayerId: ").Append(PlayerId).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 AuthenticatedPlayerResponse); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if AuthenticatedPlayerResponse instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of AuthenticatedPlayerResponse to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(AuthenticatedPlayerResponse input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.PlayerId == input.PlayerId || | ||
(this.PlayerId != null && | ||
this.PlayerId.Equals(input.PlayerId)) | ||
); | ||
} | ||
|
||
/// <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.PlayerId != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.PlayerId.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; | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.