|
@@ -28,7 +28,7 @@ class SiraniApiServices {
|
|
|
let headers: HTTPHeaders = ["Accept" : "Application/json; charset=utf-8"]
|
|
let headers: HTTPHeaders = ["Accept" : "Application/json; charset=utf-8"]
|
|
|
let body: Parameters = ["username" : username, "password" : password]
|
|
let body: Parameters = ["username" : username, "password" : password]
|
|
|
|
|
|
|
|
- return AF.request(METHOD_LOGIN, method: .post, parameters: body, encoding: URLEncoding.default, headers: headers)
|
|
|
|
|
|
|
+ return AF.request(METHOD_LOGIN_NEW, method: .post, parameters: body, encoding: URLEncoding.default, headers: headers)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Images Slider -> Home
|
|
// Images Slider -> Home
|
|
@@ -52,7 +52,7 @@ class SiraniApiServices {
|
|
|
"keyword" : keyword
|
|
"keyword" : keyword
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
- return AF.request(METHOD_GET_NEWS, method: .post, parameters: body, encoding: URLEncoding.default, headers: headers)
|
|
|
|
|
|
|
+ return AF.request(METHOD_GET_NEWS_NEW, method: .post, parameters: body, encoding: URLEncoding.default, headers: headers)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Notification Total -> Home
|
|
// Notification Total -> Home
|
|
@@ -139,7 +139,7 @@ class SiraniApiServices {
|
|
|
"id" : String(newsId)
|
|
"id" : String(newsId)
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
- return AF.request(METHOD_GET_NEWS_DETAIL, method: .post, parameters: body, encoding: URLEncoding.default, headers: headers)
|
|
|
|
|
|
|
+ return AF.request(METHOD_GET_NEWS_DETAIL_NEW, method: .post, parameters: body, encoding: URLEncoding.default, headers: headers)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// QR Code Result
|
|
// QR Code Result
|