Blinky
The following operations are supported. For a formal definition, please review the Service Description.
-
BlogIDExists
Returns true if a blog with the specified ID exists. Returns false otherwise. -
BlogIDMatchesUser
Returns true if the specified user has a blog with the specified id. Returns false otherwise. -
CommentIDExists
Returns true if a comment with the specified ID exists. Returns false otherwise. -
GetCommentLength
Returns max length of a comment. -
GetPageLength
Returns max length of a page. -
GetTitleLength
Returns max length of a title. -
GetUserDisplayName
Returns the DisplayName for specified user. Returns empty string if user doesn't exist. -
PasswordOK
Returns true if the password matches the userID. Returns false otherwise. -
PostBlog
If the userID and password match, it writes the title/blog to the database. Returns the blogID if the action succeeds. Returns -1 if anything fails. -
PostBlogComment
If the userID and password match, it writes the comment with body <body> to the blog with id blogID. Returns the commentID if the action succeeds. Returns -1 if anything fails. -
RegisterUser
Adds userID, displayName, and password to the database. Returns false if the action fails. -
UserExists
Returns true if user exists. Returns false otherwise.