You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
1.4 KiB

//
// RegisterRequestModel.swift
// GMERemittance
//
// Created by gme_2 on 10/09/2018.
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
//{"username":"dummy@mailinator.com","password":"1",
//"clientId":"172017F9EC11222E8107142733:QRK2UM0Q:","uuid":"c4183275a65bc9ce",
//"appVersion":"1","phoneBrand":"ONEPLUS A5000","phoneOS":"8.1.0",
//"fcmId":"clnYxGGL-Fw:APA91bELC9Oomz35tdS3pfmVGaChObAE0y6utiscMqpB0i-d05GMP5f1FjS",
//"osVersion":"27"}
class RegisterRequestModel: Serializer {
var username: String?
var password: String?
var confirmPassword: String?
var clientId: String?
var uuid: String?
var appVersion: String?
var phoneBrand: String?
var phoneOs: String?
var fcmId: String? // device id
var osVersion: String?
var dob: String?
func serialize() -> [String : String] {
var dict = ["":""]
dict["username"] = self.username ?? ""
dict["password"] = self.password ?? ""
dict["clientId"] = self.clientId ?? ""
dict["uuid"] = self.uuid ?? ""
dict["appVersion"] = self.appVersion ?? ""
dict["phoneBrand"] = self.phoneBrand ?? ""
dict["phoneOs"] = self.phoneOs ?? ""
dict["fcmId"] = self.fcmId ?? ""
dict["osVersion"] = self.osVersion ?? ""
dict["Dob"] = self.dob ?? ""
return dict
}
}