C# Class PhotoSharingApp.AppService.Shared.Models.DocumentDB.AnnotationDocument

The annotation json document.
Inheritance: BaseDocument
Afficher le fichier Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CreateFromContract ( AnnotationContract contract ) : AnnotationDocument

Creates a AnnotationDocument from a AnnotationContract.

ToContract ( UserContract annotationOwner, string photoId, string photoOwnerId ) : AnnotationContract

Creates a AnnotationContract from this document

Method Details

CreateFromContract() public static méthode

Creates a AnnotationDocument from a AnnotationContract.
public static CreateFromContract ( AnnotationContract contract ) : AnnotationDocument
contract PhotoSharingApp.Portable.DataContracts.AnnotationContract
Résultat AnnotationDocument

ToContract() public méthode

Creates a AnnotationContract from this document
public ToContract ( UserContract annotationOwner, string photoId, string photoOwnerId ) : AnnotationContract
annotationOwner PhotoSharingApp.Portable.DataContracts.UserContract The author of this annotation.
photoId string The id of the photo this annotation is for.
photoOwnerId string The id of the user that owns the photo this annotation is for.
Résultat PhotoSharingApp.Portable.DataContracts.AnnotationContract