mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
61 lines
2.0 KiB
C#
61 lines
2.0 KiB
C#
#region S# License
|
|
/******************************************************************************************
|
|
NOTICE!!! This program and source code is owned and licensed by
|
|
StockSharp, LLC, www.stocksharp.com
|
|
Viewing or use of this code requires your acceptance of the license
|
|
agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE
|
|
Removal of this comment is a violation of the license agreement.
|
|
|
|
Project: StockSharp.Community.Community
|
|
File: IDocService.cs
|
|
Created: 2015, 11, 11, 2:32 PM
|
|
|
|
Copyright 2010 by StockSharp, LLC
|
|
*******************************************************************************************/
|
|
#endregion S# License
|
|
namespace StockSharp.Community
|
|
{
|
|
using System;
|
|
using System.ServiceModel;
|
|
|
|
/// <summary>
|
|
/// The interface describing the documentation service.
|
|
/// </summary>
|
|
[ServiceContract]
|
|
public interface IDocService
|
|
{
|
|
/// <summary>
|
|
/// To get child pages.
|
|
/// </summary>
|
|
/// <param name="parentUrl">The query string of the parent page.</param>
|
|
/// <returns>Child pages. If no pages the <see langword="null" /> will be returned.</returns>
|
|
[OperationContract]
|
|
DocPage[] GetChildPages(string parentUrl);
|
|
|
|
/// <summary>
|
|
/// To get the body of the page.
|
|
/// </summary>
|
|
/// <param name="url">The page query string.</param>
|
|
/// <returns>The body of the page.</returns>
|
|
[OperationContract]
|
|
string GetContentBody(string url);
|
|
|
|
/// <summary>
|
|
/// To download new documentation.
|
|
/// </summary>
|
|
/// <param name="sessionId">Session ID.</param>
|
|
/// <param name="pages">New pages of documentation.</param>
|
|
[OperationContract]
|
|
void Upload(Guid sessionId, DocPage[] pages);
|
|
|
|
/// <summary>
|
|
/// To download the new version description.
|
|
/// </summary>
|
|
/// <param name="sessionId">Session ID.</param>
|
|
/// <param name="version">New version.</param>
|
|
/// <param name="product">Product type.</param>
|
|
/// <param name="description">New version description.</param>
|
|
[OperationContract]
|
|
void PostNewVersion(Guid sessionId, Products product, string version, string description);
|
|
}
|
|
} |