public void MergeFrom(KeepAliveRequest other) { if (other == null) { return; } 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.pushServiceToken_ != null) { if (pushServiceToken_ == null) { PushServiceToken = new global::AcFunDanmu.PushServiceToken(); } PushServiceToken.MergeFrom(other.PushServiceToken); } pushServiceTokenList_.Add(other.pushServiceTokenList_); if (other.KeepaliveIntervalSec != 0) { KeepaliveIntervalSec = other.KeepaliveIntervalSec; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (PresenceStatus != global::AcFunDanmu.RegisterRequest.Types.PresenceStatus.KPresenceOffline) { hash ^= PresenceStatus.GetHashCode(); } if (AppActiveStatus != global::AcFunDanmu.RegisterRequest.Types.ActiveStatus.KInvalid) { hash ^= AppActiveStatus.GetHashCode(); } if (pushServiceToken_ != null) { hash ^= PushServiceToken.GetHashCode(); } hash ^= pushServiceTokenList_.GetHashCode(); if (KeepaliveIntervalSec != 0) { hash ^= KeepaliveIntervalSec.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(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); }