Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }