123456789101112131415161718192021222324252627282930 |
- //
- // IHPersonalCenterService.swift
- // Inhealth
- //
- // Created by weclouds on 2019/12/24.
- // Copyright © 2019 weclouds. All rights reserved.
- //
- import UIKit
- import SwiftyJSON
- class IHPersonalCenterService: NSObject {
- static let share = IHPersonalCenterService()
-
- func getRoomCount(requestSuccess:((String)->Void)?,requestFail:@escaping (()->Void)){
- let username = AppShare.username
- let token = AppShare.token
- let os = AppShare.os
- let version = AppShare.version
- let client_key = AppShare.client_key
- g_app_get_room_countHttpRequest(username, client_key: client_key, os: os, version: version, token: token, success: { (json) -> (Void) in
- let mRoomCountInfo = RoomCount_Info.fromJSON(json)
- let result = mRoomCountInfo?.result
- if let count = result?.count{
- requestSuccess!(count)
- }
- }) { () -> (Void) in
- requestFail()
- }
- }
- }
|