public override int GetHashCode() { int hash = 1; if (ClientType != global::AcFunDanmu.DeviceInfo.Types.PlatformType.KInvalid) { hash ^= ClientType.GetHashCode(); } if (DeviceId.Length != 0) { hash ^= DeviceId.GetHashCode(); } if (ClientIp.Length != 0) { hash ^= ClientIp.GetHashCode(); } if (AppVersion.Length != 0) { hash ^= AppVersion.GetHashCode(); } if (Channel.Length != 0) { hash ^= Channel.GetHashCode(); } if (appInfo_ != null) { hash ^= AppInfo.GetHashCode(); } if (deviceInfo_ != null) { hash ^= DeviceInfo.GetHashCode(); } if (envInfo_ != null) { hash ^= EnvInfo.GetHashCode(); } if (ClientPort != 0) { hash ^= ClientPort.GetHashCode(); } if (Location.Length != 0) { hash ^= Location.GetHashCode(); } if (Kpf.Length != 0) { hash ^= Kpf.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (appInfo_ != null) { hash ^= AppInfo.GetHashCode(); } if (deviceInfo_ != null) { hash ^= DeviceInfo.GetHashCode(); } if (envInfo_ != null) { hash ^= EnvInfo.GetHashCode(); } if (PresenceStatus != global::AcFunDanmu.RegisterRequest.Types.PresenceStatus.KPresenceOffline) { hash ^= PresenceStatus.GetHashCode(); } if (AppActiveStatus != global::AcFunDanmu.RegisterRequest.Types.ActiveStatus.KInvalid) { hash ^= AppActiveStatus.GetHashCode(); } if (AppCustomStatus.Length != 0) { hash ^= AppCustomStatus.GetHashCode(); } if (pushServiceToken_ != null) { hash ^= PushServiceToken.GetHashCode(); } if (InstanceId != 0L) { hash ^= InstanceId.GetHashCode(); } hash ^= pushServiceTokenList_.GetHashCode(); if (KeepaliveIntervalSec != 0) { hash ^= KeepaliveIntervalSec.GetHashCode(); } if (ztCommonInfo_ != null) { hash ^= ZtCommonInfo.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(RequestBasicInfo other) { if (other == null) { return; } if (other.ClientType != global::AcFunDanmu.DeviceInfo.Types.PlatformType.KInvalid) { ClientType = other.ClientType; } if (other.DeviceId.Length != 0) { DeviceId = other.DeviceId; } if (other.ClientIp.Length != 0) { ClientIp = other.ClientIp; } if (other.AppVersion.Length != 0) { AppVersion = other.AppVersion; } if (other.Channel.Length != 0) { Channel = other.Channel; } if (other.appInfo_ != null) { if (appInfo_ == null) { AppInfo = new global::AcFunDanmu.AppInfo(); } AppInfo.MergeFrom(other.AppInfo); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::AcFunDanmu.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.envInfo_ != null) { if (envInfo_ == null) { EnvInfo = new global::AcFunDanmu.EnvInfo(); } EnvInfo.MergeFrom(other.EnvInfo); } if (other.ClientPort != 0) { ClientPort = other.ClientPort; } if (other.Location.Length != 0) { Location = other.Location; } if (other.Kpf.Length != 0) { Kpf = other.Kpf; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(RegisterRequest other) { if (other == null) { return; } if (other.appInfo_ != null) { if (appInfo_ == null) { AppInfo = new global::AcFunDanmu.AppInfo(); } AppInfo.MergeFrom(other.AppInfo); } if (other.deviceInfo_ != null) { if (deviceInfo_ == null) { DeviceInfo = new global::AcFunDanmu.DeviceInfo(); } DeviceInfo.MergeFrom(other.DeviceInfo); } if (other.envInfo_ != null) { if (envInfo_ == null) { EnvInfo = new global::AcFunDanmu.EnvInfo(); } EnvInfo.MergeFrom(other.EnvInfo); } if (other.PresenceStatus != global::AcFunDanmu.RegisterRequest.Types.PresenceStatus.KPresenceOffline) { PresenceStatus = other.PresenceStatus; } if (other.AppActiveStatus != global::AcFunDanmu.RegisterRequest.Types.ActiveStatus.KInvalid) { AppActiveStatus = other.AppActiveStatus; } if (other.AppCustomStatus.Length != 0) { AppCustomStatus = other.AppCustomStatus; } if (other.pushServiceToken_ != null) { if (pushServiceToken_ == null) { PushServiceToken = new global::AcFunDanmu.PushServiceToken(); } PushServiceToken.MergeFrom(other.PushServiceToken); } if (other.InstanceId != 0L) { InstanceId = other.InstanceId; } pushServiceTokenList_.Add(other.pushServiceTokenList_); if (other.KeepaliveIntervalSec != 0) { KeepaliveIntervalSec = other.KeepaliveIntervalSec; } if (other.ztCommonInfo_ != null) { if (ztCommonInfo_ == null) { ZtCommonInfo = new global::AcFunDanmu.ZtCommonInfo(); } ZtCommonInfo.MergeFrom(other.ZtCommonInfo); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }