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

The report json document.
Inheritance: BaseDocument
Mostrar archivo Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
CreateFromContract ( ReportContract contract ) : ReportDocument

Creates a ReportDocument from a ReportContract.

ToContract ( string contentId, ContentType contentType ) : ReportContract

Creates a ReportContract from this document.

Method Details

CreateFromContract() public static method

Creates a ReportDocument from a ReportContract.
public static CreateFromContract ( ReportContract contract ) : ReportDocument
contract PhotoSharingApp.Portable.DataContracts.ReportContract
return ReportDocument

ToContract() public method

Creates a ReportContract from this document.
public ToContract ( string contentId, ContentType contentType ) : ReportContract
contentId string The id of the content this report is for.
contentType ContentType The content type this report is for.
return PhotoSharingApp.Portable.DataContracts.ReportContract