X5LearnAPIAdapter
class X5LearnAPIAdapter : APIAdapter
X5LearnAPIAdapter
use to generate url base on root url http://x5learn.org\/
-
Generate X5Learn Root url http://x5learn.org\/
Declaration
Swift
static func rootURL() -> String
-
Generate X5Learn APIVersion api/v1/
Declaration
Swift
static func APIVersion() -> String
-
Generate X5Learn search url with
keyword
Key word
keywordscontentType: type of Content, currently support
pdf
,audio
,video
Usage Example:
X5LearnAPIAdapter.generateContentQueryURL("Science","pdf")
Declaration
Swift
static func generateContentQueryURL(keyWord: String, contentType _: String) -> String
Return Value
search url
-
Generate X5Learn login query URL
Declaration
Swift
static func generateLoginQueryURL() -> String
-
Generate X5Learn logout query URL
Declaration
Swift
static func gererateLogoutQueryURL() -> String
-
Generate X5Learn User Session Query URL
Declaration
Swift
static func generateUserSessionQueryURL() -> String
-
Generate X5Learn FeaturedContent URL
Declaration
Swift
static func generateFeaturedContentURL() -> String
-
Generate X5Learn Wiki Chunk Enrichments URL
Declaration
Swift
static func generateWikiChunkEnrichmentsURL() -> String
-
Generate X5Learn Notes URL
Declaration
Swift
static func generateNotesURL() -> String
-
Generate X5Learn Notes URL with Id as parameter;
Declaration
Swift
static func generateNotesURL(id: Int) -> String
-
Generate
Bookmark
content urlDeclaration
Swift
static func TBD_generateBookmarkURL(id: Int, bookmark _: Bool) -> String
-
Generated
Report
content urlDeclaration
Swift
static func TBD_generateReportURL(id: Int) -> String
-
Undocumented
Declaration
Swift
static func TBD_generateVoteURL(id: Int) -> String