/* * FHT.Core.API 1.0 * * ̨group.apiVersion:1.0 * * OpenAPI spec version: v1 * Contact: fht@fht360.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.ComponentModel.DataAnnotations; namespace IO.Swagger.Model { #pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' /// /// BasicStatInfo /// [DataContract] public partial class BasicStatInfo : IEquatable, IValidatableObject //Mark 555 { /// /// FHT.Core.CommonTypes.DeviceType, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// /// FHT.Core.CommonTypes.DeviceType, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [DataMember(Name="DeviceType", EmitDefaultValue=false)] public DeviceTypeEnum? DeviceType { get; set; } /// /// FHT.Statistics.Interfaces.Dto.Common.MobilePageId, FHT.Statistics.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// /// FHT.Statistics.Interfaces.Dto.Common.MobilePageId, FHT.Statistics.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [DataMember(Name="PageId", EmitDefaultValue=false)] public MobilePageIdEnum? PageId { get; set; } /// /// FHT.Statistics.Services.ImplementedInterfaces.Dto.Common.NetworkType, FHT.Statistics.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// /// FHT.Statistics.Services.ImplementedInterfaces.Dto.Common.NetworkType, FHT.Statistics.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [DataMember(Name="Network", EmitDefaultValue=false)] public NetworkTypeEnum? Network { get; set; } /// /// 2. Initializes a new instance of the class. /// [JsonConstructorAttribute] protected BasicStatInfo() { } /// /// Not Enum: Gets or Sets VisitorId /// [DataMember(Name="VisitorId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string VisitorId { get; set; } /// /// Not Enum: Gets or Sets SessionId /// [DataMember(Name="SessionId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string SessionId { get; set; } /// /// Not Enum: Gets or Sets TrackingKey /// [DataMember(Name="TrackingKey", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string TrackingKey { get; set; } /// /// Not Enum: Gets or Sets UserId /// [DataMember(Name="UserId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public int? UserId { get; set; } /// /// Not Enum: Gets or Sets UserCompanyId /// [DataMember(Name="UserCompanyId", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public int? UserCompanyId { get; set; } /// /// Not Enum: Gets or Sets UserAgent /// [DataMember(Name="UserAgent", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string UserAgent { get; set; } /// /// Not Enum: Gets or Sets Url /// [DataMember(Name="Url", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Url { get; set; } /// /// Not Enum: Gets or Sets Referer /// [DataMember(Name="Referer", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Referer { get; set; } /// /// Not Enum: Gets or Sets Timestamp /// [DataMember(Name="Timestamp", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=false} public long? Timestamp { get; set; } /// /// Not Enum: Gets or Sets AppVersion /// [DataMember(Name="AppVersion", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string AppVersion { get; set; } /// /// Not Enum: Gets or Sets Province /// [DataMember(Name="Province", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Province { get; set; } /// /// Not Enum: Gets or Sets City /// [DataMember(Name="City", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string City { get; set; } /// /// Not Enum: Gets or Sets Longitude /// [DataMember(Name="Longitude", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public double? Longitude { get; set; } /// /// Not Enum: Gets or Sets Latitude /// [DataMember(Name="Latitude", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public double? Latitude { get; set; } /// /// Not Enum: Gets or Sets Manufacturer /// [DataMember(Name="Manufacturer", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Manufacturer { get; set; } /// /// Not Enum: Gets or Sets Model /// [DataMember(Name="Model", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string Model { get; set; } /// /// Not Enum: Gets or Sets OS /// [DataMember(Name="OS", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {} public string OS { get; set; } /// /// Not Enum: Gets or Sets ScreenHeight /// [DataMember(Name="ScreenHeight", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public int? ScreenHeight { get; set; } /// /// Not Enum: Gets or Sets ScreenWidth /// [DataMember(Name="ScreenWidth", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public int? ScreenWidth { get; set; } /// /// Not Enum: Gets or Sets Battery /// [DataMember(Name="Battery", EmitDefaultValue=false)] //Mark 1 vendorExtensions: {x-isnullable=true} public int? Battery { get; set; } /// /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class BasicStatInfo {\n"); sb.Append(" VisitorId: ").Append(VisitorId).Append("\n"); sb.Append(" SessionId: ").Append(SessionId).Append("\n"); sb.Append(" TrackingKey: ").Append(TrackingKey).Append("\n"); sb.Append(" UserId: ").Append(UserId).Append("\n"); sb.Append(" UserCompanyId: ").Append(UserCompanyId).Append("\n"); sb.Append(" DeviceType: ").Append(DeviceType).Append("\n"); sb.Append(" UserAgent: ").Append(UserAgent).Append("\n"); sb.Append(" Url: ").Append(Url).Append("\n"); sb.Append(" Referer: ").Append(Referer).Append("\n"); sb.Append(" PageId: ").Append(PageId).Append("\n"); sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); sb.Append(" AppVersion: ").Append(AppVersion).Append("\n"); sb.Append(" Province: ").Append(Province).Append("\n"); sb.Append(" City: ").Append(City).Append("\n"); sb.Append(" Longitude: ").Append(Longitude).Append("\n"); sb.Append(" Latitude: ").Append(Latitude).Append("\n"); sb.Append(" Manufacturer: ").Append(Manufacturer).Append("\n"); sb.Append(" Model: ").Append(Model).Append("\n"); sb.Append(" OS: ").Append(OS).Append("\n"); sb.Append(" ScreenHeight: ").Append(ScreenHeight).Append("\n"); sb.Append(" ScreenWidth: ").Append(ScreenWidth).Append("\n"); sb.Append(" Network: ").Append(Network).Append("\n"); sb.Append(" Battery: ").Append(Battery).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// /// Returns true if objects are equal /// /// Object to be compared /// Boolean public override bool Equals(object obj) { // credit: http://stackoverflow.com/a/10454552/677735 return this.Equals(obj as BasicStatInfo); } /// /// Returns true if BasicStatInfo instances are equal /// /// Instance of BasicStatInfo to be compared /// Boolean public bool Equals(BasicStatInfo other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) return false; return ( this.VisitorId == other.VisitorId || this.VisitorId != null && this.VisitorId.Equals(other.VisitorId) ) && ( this.SessionId == other.SessionId || this.SessionId != null && this.SessionId.Equals(other.SessionId) ) && ( this.TrackingKey == other.TrackingKey || this.TrackingKey != null && this.TrackingKey.Equals(other.TrackingKey) ) && ( this.UserId == other.UserId || this.UserId != null && this.UserId.Equals(other.UserId) ) && ( this.UserCompanyId == other.UserCompanyId || this.UserCompanyId != null && this.UserCompanyId.Equals(other.UserCompanyId) ) && ( this.DeviceType == other.DeviceType || this.DeviceType != null && this.DeviceType.Equals(other.DeviceType) ) && ( this.UserAgent == other.UserAgent || this.UserAgent != null && this.UserAgent.Equals(other.UserAgent) ) && ( this.Url == other.Url || this.Url != null && this.Url.Equals(other.Url) ) && ( this.Referer == other.Referer || this.Referer != null && this.Referer.Equals(other.Referer) ) && ( this.PageId == other.PageId || this.PageId != null && this.PageId.Equals(other.PageId) ) && ( this.Timestamp == other.Timestamp || this.Timestamp != null && this.Timestamp.Equals(other.Timestamp) ) && ( this.AppVersion == other.AppVersion || this.AppVersion != null && this.AppVersion.Equals(other.AppVersion) ) && ( this.Province == other.Province || this.Province != null && this.Province.Equals(other.Province) ) && ( this.City == other.City || this.City != null && this.City.Equals(other.City) ) && ( this.Longitude == other.Longitude || this.Longitude != null && this.Longitude.Equals(other.Longitude) ) && ( this.Latitude == other.Latitude || this.Latitude != null && this.Latitude.Equals(other.Latitude) ) && ( this.Manufacturer == other.Manufacturer || this.Manufacturer != null && this.Manufacturer.Equals(other.Manufacturer) ) && ( this.Model == other.Model || this.Model != null && this.Model.Equals(other.Model) ) && ( this.OS == other.OS || this.OS != null && this.OS.Equals(other.OS) ) && ( this.ScreenHeight == other.ScreenHeight || this.ScreenHeight != null && this.ScreenHeight.Equals(other.ScreenHeight) ) && ( this.ScreenWidth == other.ScreenWidth || this.ScreenWidth != null && this.ScreenWidth.Equals(other.ScreenWidth) ) && ( this.Network == other.Network || this.Network != null && this.Network.Equals(other.Network) ) && ( this.Battery == other.Battery || this.Battery != null && this.Battery.Equals(other.Battery) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks etc, of course :) if (this.VisitorId != null) hash = hash * 59 + this.VisitorId.GetHashCode(); if (this.SessionId != null) hash = hash * 59 + this.SessionId.GetHashCode(); if (this.TrackingKey != null) hash = hash * 59 + this.TrackingKey.GetHashCode(); if (this.UserId != null) hash = hash * 59 + this.UserId.GetHashCode(); if (this.UserCompanyId != null) hash = hash * 59 + this.UserCompanyId.GetHashCode(); if (this.DeviceType != null) hash = hash * 59 + this.DeviceType.GetHashCode(); if (this.UserAgent != null) hash = hash * 59 + this.UserAgent.GetHashCode(); if (this.Url != null) hash = hash * 59 + this.Url.GetHashCode(); if (this.Referer != null) hash = hash * 59 + this.Referer.GetHashCode(); if (this.PageId != null) hash = hash * 59 + this.PageId.GetHashCode(); if (this.Timestamp != null) hash = hash * 59 + this.Timestamp.GetHashCode(); if (this.AppVersion != null) hash = hash * 59 + this.AppVersion.GetHashCode(); if (this.Province != null) hash = hash * 59 + this.Province.GetHashCode(); if (this.City != null) hash = hash * 59 + this.City.GetHashCode(); if (this.Longitude != null) hash = hash * 59 + this.Longitude.GetHashCode(); if (this.Latitude != null) hash = hash * 59 + this.Latitude.GetHashCode(); if (this.Manufacturer != null) hash = hash * 59 + this.Manufacturer.GetHashCode(); if (this.Model != null) hash = hash * 59 + this.Model.GetHashCode(); if (this.OS != null) hash = hash * 59 + this.OS.GetHashCode(); if (this.ScreenHeight != null) hash = hash * 59 + this.ScreenHeight.GetHashCode(); if (this.ScreenWidth != null) hash = hash * 59 + this.ScreenWidth.GetHashCode(); if (this.Network != null) hash = hash * 59 + this.Network.GetHashCode(); if (this.Battery != null) hash = hash * 59 + this.Battery.GetHashCode(); return hash; } } public IEnumerable Validate(ValidationContext validationContext) { yield break; } } #pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null' }