//----------------------
// <auto-generated>
//     Generated using the NSwag toolchain v14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------


using StreamChat.Core.InternalDTO.Responses;
using StreamChat.Core.InternalDTO.Requests;
using StreamChat.Core.InternalDTO.Events;

namespace StreamChat.Core.InternalDTO.Models
{
    using System = global::System;

    [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]

    internal readonly struct PushProviderTypeInternalDTO : System.IEquatable<PushProviderTypeInternalDTO>, StreamChat.Core.LowLevelClient.IEnumeratedStruct<PushProviderTypeInternalDTO>
    {
        public string Value { get; }

        public static readonly PushProviderTypeInternalDTO Firebase = new PushProviderTypeInternalDTO("firebase");
        public static readonly PushProviderTypeInternalDTO Apn = new PushProviderTypeInternalDTO("apn");
        public static readonly PushProviderTypeInternalDTO Huawei = new PushProviderTypeInternalDTO("huawei");
        public static readonly PushProviderTypeInternalDTO Xiaomi = new PushProviderTypeInternalDTO("xiaomi");

        public PushProviderTypeInternalDTO(string value)
        {
            Value = value;
        }

        public PushProviderTypeInternalDTO Parse(string value) => new PushProviderTypeInternalDTO(value);

        public override string ToString() => Value;

        public bool Equals(PushProviderTypeInternalDTO other) => Value == other.Value;

        public override bool Equals(object obj) => obj is PushProviderTypeInternalDTO other && Equals(other);

        public override int GetHashCode() => Value.GetHashCode();

        public static bool operator ==(PushProviderTypeInternalDTO left, PushProviderTypeInternalDTO right) => left.Equals(right);

        public static bool operator !=(PushProviderTypeInternalDTO left, PushProviderTypeInternalDTO right) => !left.Equals(right);

        public static implicit operator PushProviderTypeInternalDTO(string value) => new PushProviderTypeInternalDTO(value);

        public static implicit operator string(PushProviderTypeInternalDTO type) => type.Value;
    }
}
