APIAdapter
protocol APIAdapter
API Aadpater Protocol, used to define functions to generate different URLs for our App
-
Reuturn rootURL
Declaration
Swift
static func rootURL() -> String -
Return APIVersion in url form
Declaration
Swift
static func APIVersion() -> String -
Generate Content Query using
keywordsandcontentTypeDeclaration
Swift
static func generateContentQueryURL(keyWord: String, contentType: String) -> String -
Generate login Query URL
Declaration
Swift
static func generateLoginQueryURL() -> String -
Generate logout Query URL
Declaration
Swift
static func gererateLogoutQueryURL() -> String -
Generate User Seesion Query URL
Declaration
Swift
static func generateUserSessionQueryURL() -> String -
Gnerate Featured
ContentURLDeclaration
Swift
static func generateFeaturedContentURL() -> String -
Gnerate Featured
NoteURLDeclaration
Swift
static func generateNotesURL() -> String -
Gnerate Featured
NoteURL, with id as parameterDeclaration
Swift
static func generateNotesURL(id: Int) -> String -
Generate Bookmark url with
id- id: Content id,
Int bookmark:
Boolvalue if the content is being bookmarked
Declaration
Swift
static func TBD_generateBookmarkURL(id: Int, bookmark: Bool) -> StringReturn Value
bookmark url
- id: Content id,
-
Generate
Reportcontent urlDeclaration
Swift
static func TBD_generateReportURL(id: Int) -> String -
Undocumented
Declaration
Swift
static func TBD_generateVoteURL(id: Int) -> String
APIAdapter Protocol Reference