Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 641 Bytes
//
// Device.swift
// MercadoPagoSDK
//
// Created by Matias Gualino on 28/12/14.
// Copyright (c) 2014 com.mercadopago. All rights reserved.
//
import Foundation
open class Device: NSObject {
open var fingerprint: Fingerprint!
public override init() {
super.init()
self.fingerprint = Fingerprint()
}
open func toJSONString() -> String {
return JSONHandler.jsonCoding(toJSON())
}
open func toJSON() -> [String: Any] {
let finger: [String:Any] = self.fingerprint.toJSON()
let obj: [String:Any] = [
"fingerprint": finger
]
return obj
}
}
You can’t perform that action at this time.