C# Класс PhotoSharingApp.AppService.Shared.Models.DocumentDB.AnnotationDocument

The annotation json document.
Наследование: BaseDocument
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
CreateFromContract ( AnnotationContract contract ) : AnnotationDocument

Creates a AnnotationDocument from a AnnotationContract.

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

Creates a AnnotationContract from this document

Описание методов

CreateFromContract() публичный статический Метод

Creates a AnnotationDocument from a AnnotationContract.
public static CreateFromContract ( AnnotationContract contract ) : AnnotationDocument
contract PhotoSharingApp.Portable.DataContracts.AnnotationContract
Результат AnnotationDocument

ToContract() публичный Метод

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.
Результат PhotoSharingApp.Portable.DataContracts.AnnotationContract