MM-23547: remove redundant JSON parsing in push notifications (#14181)

Automatic Merge
Этот коммит содержится в:
Agniva De Sarker
2020-04-08 21:08:57 +05:30
коммит произвёл GitHub
родитель b8eb69281b
Коммит 583daeb132
3 изменённых файлов: 9 добавлений и 16 удалений

Просмотреть файл

@@ -74,6 +74,11 @@ func (me *PushNotification) ToJson() string {
return string(b)
}
func (me *PushNotification) DeepCopy() *PushNotification {
copy := *me
return &copy
}
func (me *PushNotification) SetDeviceIdAndPlatform(deviceId string) {
index := strings.Index(deviceId, ":")