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

The annotation json document.
Inheritance: BaseDocument
Mostrar archivo Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

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

ToContract() public method

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.
return PhotoSharingApp.Portable.DataContracts.AnnotationContract