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.
51 lines
1.0 KiB
51 lines
1.0 KiB
//
|
|
// NotificationFetch.swift
|
|
// GME Remit
|
|
//
|
|
// Created by Shiran on 10/6/20.
|
|
// Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import ObjectMapper
|
|
|
|
class NotificationFetch: Mappable {
|
|
var errorCode: String?
|
|
var message: String?
|
|
var id: String?
|
|
var extra: String?
|
|
var data: [ResponseData]?
|
|
|
|
required init?(map: Map) {
|
|
|
|
}
|
|
|
|
func mapping(map: Map) {
|
|
errorCode <- map["ErrorCode"]
|
|
message <- map["Msg"]
|
|
id <- map["Id"]
|
|
extra <- map["Extra"]
|
|
data <- map["Data"]
|
|
}
|
|
}
|
|
|
|
class ResponseData: Mappable {
|
|
var rowId: String?
|
|
var isRead: String?
|
|
var title: String?
|
|
var createDate: String?
|
|
var type: String?
|
|
var extra: String?
|
|
required init?(map: Map) {
|
|
|
|
}
|
|
|
|
func mapping(map: Map) {
|
|
rowId <- map["rowId"]
|
|
isRead <- map["isRead"]
|
|
title <- map["title"]
|
|
createDate <- map["createDate"]
|
|
type <- map["type"]
|
|
extra <- map["extra"]
|
|
}
|
|
}
|