Method | Description | |
---|---|---|
CreateCategory ( string categoryName ) : Task |
Creates a new category.
|
|
DeletePhoto ( |
Deletes the photo.
|
|
FulfillGold ( string productReceipt ) : Task |
Fulfills gold on the service.
|
|
GetAvailableAuthenticationProviders ( ) : List |
Gets the available authentication providers.
|
|
GetCategories ( ) : Task
|
Retrieves all categories without thumbnails.
|
|
GetConfig ( ) : Task |
Gets the configuration data.
|
|
GetCurrentUser ( ) : Task |
Gets the current user.
|
|
GetHeroImages ( int count ) : Task
|
Retrieves hero images.
|
|
GetLeaderboardData ( int mostGoldCategoriesCount, int mostGoldPhotosCount, int mostGoldUsersCount, int mostGivingUsersCount ) : Task |
Gets the leaderboard statistical data
|
|
GetPhotoDetails ( string photoId ) : Task |
Gets the photo details for the given photo id.
|
|
GetPhotosForCategoryId ( string categoryId, string continuationToken = null ) : Task |
Gets photos for the given category id.
|
|
GetPhotosForCurrentUser ( string continuationToken = null ) : Task |
Gets photos uploaded by the current user.
|
|
GetPhotosForUser ( |
Gets photos uploaded by the specified user.
|
|
GetTopCategories ( int categoryThumbnailsCount, string continuationToken = null ) : Task
|
Retrieves top categories with thumbnails.
|
|
PhotoDummyService ( ) : System |
Intialize static sample data for Categories, Users, Photos, Annotations and Leaderboards for using dummy service.
|
|
PostAnnotation ( |
Posts the annotation.
|
|
RemoveAnnotation ( |
Removes the Annotation.
|
|
ReportAnnotation ( |
Reports the Annotation as inappropriate.
|
|
ReportPhoto ( |
Reports the photo as inappropriate.
|
|
RestoreSignInStatusAsync ( ) : System.Threading.Tasks.Task |
Checks if credentials are available and not expired, which are then used to restore the sign in status. The user is not actively taken to a login page.
|
|
SignInAsync ( MobileServiceAuthenticationProvider provider ) : System.Threading.Tasks.Task |
Signs the user in.
|
|
SignOutAsync ( ) : System.Threading.Tasks.Task |
Signs the user out.
|
|
UpdatePhoto ( |
Updates the photo.
|
|
UpdateUserProfilePhoto ( |
Updates the current user's profile photo
|
|
UploadPhoto ( Stream stream, string localPath, string caption, string categoryId ) : Task |
Uploads the photo.
|
Method | Description | |
---|---|---|
GetWaitTime ( ) : System.TimeSpan | ||
InitAnnotations ( ) : void | ||
InitCategories ( ) : void | ||
InitLeaderboardData ( ) : void | ||
InitPhotoStreams ( ) : void | ||
InitSampleUsers ( ) : void | ||
InitTopCategories ( ) : void | ||
InitUser ( ) : void | ||
SimulateWaitAndError ( ) : System.Threading.Tasks.Task |
Simulates an error in every second call. Can be disabled by setting IsErrorSimulationEnabled variable to false.
|
public CreateCategory ( string categoryName ) : Task |
||
categoryName | string | The category name. |
return | Task |
public DeletePhoto ( |
||
photo | The photo. | |
return | System.Threading.Tasks.Task |
public FulfillGold ( string productReceipt ) : Task |
||
productReceipt | string | The product receipt. |
return | Task |
public GetAvailableAuthenticationProviders ( ) : List |
||
return | List |
public GetHeroImages ( int count ) : Task
|
||
count | int | Number of hero images. |
return | Task
|
public GetLeaderboardData ( int mostGoldCategoriesCount, int mostGoldPhotosCount, int mostGoldUsersCount, int mostGivingUsersCount ) : Task |
||
mostGoldCategoriesCount | int | |
mostGoldPhotosCount | int | |
mostGoldUsersCount | int | |
mostGivingUsersCount | int | |
return | Task |
public GetPhotoDetails ( string photoId ) : Task |
||
photoId | string | The photo identifier. |
return | Task |
public GetPhotosForCategoryId ( string categoryId, string continuationToken = null ) : Task |
||
categoryId | string | The identifier. |
continuationToken | string | Optional. The continuation token. By default, null. |
return | Task |
public GetPhotosForCurrentUser ( string continuationToken = null ) : Task |
||
continuationToken | string | Optional. The continuation token. By default, null. |
return | Task |
public GetPhotosForUser ( |
||
user | The user. | |
continuationToken | string | Optional. The continuation token. By default, null. |
return | Task |
public GetTopCategories ( int categoryThumbnailsCount, string continuationToken = null ) : Task
|
||
categoryThumbnailsCount | int | The number of thumbnails per each category. |
continuationToken | string | Optional. The continuation token. By default, null. |
return | Task
|
public PostAnnotation ( |
||
photo | The photo. | |
annotationText | string | The text. |
goldCount | int | The amount of gold being given. |
return | Task |
public RemoveAnnotation ( |
||
annotation | The Annotation. | |
return | System.Threading.Tasks.Task |
public ReportAnnotation ( |
||
annotation | The Annotation. | |
return | System.Threading.Tasks.Task |
public ReportPhoto ( |
||
photo | The photo. | |
reportReason | ReportReason | The reason for the report. |
return | System.Threading.Tasks.Task |
public RestoreSignInStatusAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public SignInAsync ( MobileServiceAuthenticationProvider provider ) : System.Threading.Tasks.Task | ||
provider | MobileServiceAuthenticationProvider | The provider. |
return | System.Threading.Tasks.Task |
public SignOutAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public UpdatePhoto ( |
||
photo | The photo. | |
return | System.Threading.Tasks.Task |
public UpdateUserProfilePhoto ( |
||
photo | The new profile photo | |
return | Task |
public UploadPhoto ( Stream stream, string localPath, string caption, string categoryId ) : Task |
||
stream | Stream | The memory stream. |
localPath | string | The local path. |
caption | string | The caption. |
categoryId | string | The id of the assocaited category. |
return | Task |