public override int GetHashCode() { int hash = 1; if (apnToken_ != null) { hash ^= ApnToken.GetHashCode(); } if (gcmToken_ != null) { hash ^= GcmToken.GetHashCode(); } return(hash); }
public void MergeFrom(PushNotificationRegistryMessage other) { if (other == null) { return; } if (other.apnToken_ != null) { if (apnToken_ == null) { apnToken_ = new global::POGOProtos.Networking.Requests.Messages.PushNotificationRegistryMessage.Types.ApnToken(); } ApnToken.MergeFrom(other.ApnToken); } if (other.gcmToken_ != null) { if (gcmToken_ == null) { gcmToken_ = new global::POGOProtos.Networking.Requests.Messages.PushNotificationRegistryMessage.Types.GcmToken(); } GcmToken.MergeFrom(other.GcmToken); } }
public void MergeFrom(RegisterPushNotificationMessage other) { if (other == null) { return; } if (other.apnToken_ != null) { if (apnToken_ == null) { apnToken_ = new global::POGOProtos.Networking.Requests.Messages.RegisterPushNotificationMessage.Types.ApnToken(); } ApnToken.MergeFrom(other.ApnToken); } if (other.gcmToken_ != null) { if (gcmToken_ == null) { gcmToken_ = new global::POGOProtos.Networking.Requests.Messages.RegisterPushNotificationMessage.Types.GcmToken(); } GcmToken.MergeFrom(other.GcmToken); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(RegisterPushNotificationMessage other) { if (other == null) { return; } if (other.apnToken_ != null) { if (apnToken_ == null) { ApnToken = new global::WUProtos.Data.Token.ApnToken(); } ApnToken.MergeFrom(other.ApnToken); } if (other.gcmToken_ != null) { if (gcmToken_ == null) { GcmToken = new global::WUProtos.Data.Token.GcmToken(); } GcmToken.MergeFrom(other.GcmToken); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public async Task <RegisterPushNotificationResponse> UnregisterPushNotification(ApnToken apnToken, GcmToken gcmToken) { var UnregisterPushNotificationRequest = new Request { RequestType = RequestType.UnregisterPushNotification, RequestMessage = ((IMessage) new RegisterPushNotificationMessage { ApnToken = apnToken, GcmToken = gcmToken, }).ToByteString() }; var request = await GetRequestBuilder().GetRequestEnvelope(CommonRequest.FillRequest(UnregisterPushNotificationRequest, Client)).ConfigureAwait(false); Tuple <RegisterPushNotificationResponse, CheckChallengeResponse, GetHatchedEggsResponse, GetHoloInventoryResponse, CheckAwardedBadgesResponse, DownloadSettingsResponse, GetBuddyWalkedResponse> response = await PostProtoPayload <Request, RegisterPushNotificationResponse, CheckChallengeResponse, GetHatchedEggsResponse, GetHoloInventoryResponse, CheckAwardedBadgesResponse, DownloadSettingsResponse, GetBuddyWalkedResponse>(request).ConfigureAwait(false); CheckChallengeResponse checkChallengeResponse = response.Item2; CommonRequest.ProcessCheckChallengeResponse(Client, checkChallengeResponse); GetHoloInventoryResponse getHoloInventoryResponse = response.Item4; CommonRequest.ProcessGetHoloInventoryResponse(Client, getHoloInventoryResponse); DownloadSettingsResponse downloadSettingsResponse = response.Item6; CommonRequest.ProcessDownloadSettingsResponse(Client, downloadSettingsResponse); return(response.Item1); }