Repository navigation
Expand file tree
/
Copy pathILeanKitIntegrationFactory.cs
More file actions
42 lines (39 loc) · 2.27 KB
/
Copy pathILeanKitIntegrationFactory.cs
File metadata and controls
42 lines (39 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//------------------------------------------------------------------------------
// <copyright company="LeanKit Inc.">
// Copyright (c) LeanKit Inc. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
using LeanKit.API.Client.Library.TransferObjects;
namespace LeanKit.API.Client.Library
{
public interface ILeanKitIntegrationFactory
{
/// <summary>
/// Factory method that creates and returns the <see cref="LeanKitIntegration" /> implementation using the
/// LeanKitClient created with the default <see cref="IRestCommandProcessor" />.
/// </summary>
/// <remarks>
/// The default implementation of the <see cref="IRestCommandProcessor" /> uses RestSharp.
/// </remarks>
/// <param name="boardId">The Identity of the Board that will be watched and modified.</param>
/// <param name="accountAuth">The account authentication information used to connect to the LeanKit API.</param>
/// <returns>The <see cref="ILeanKitIntegration" /> used to monitor and modify the specified board. </returns>
[Obsolete("This is deprecated. Please use ILeanKitAccountAuth instead.")]
ILeanKitIntegration Create(long boardId, LeanKitAccountAuth accountAuth);
[Obsolete("This is deprecated. Please use ILeanKitAccountAuth instead.")]
ILeanKitIntegration Create(long boardId, LeanKitAccountAuth accountAuth, IntegrationSettings settings);
/// <summary>
/// Factory method that creates and returns the <see cref="LeanKitIntegration" /> implementation using the
/// LeanKitClient created with the default <see cref="IRestCommandProcessor" />.
/// </summary>
/// <remarks>
/// The default implementation of the <see cref="IRestCommandProcessor" /> uses RestSharp.
/// </remarks>
/// <param name="boardId">The Identity of the Board that will be watched and modified.</param>
/// <param name="accountAuth">The account authentication information used to connect to the LeanKit API.</param>
/// <returns>The <see cref="ILeanKitIntegration" /> used to monitor and modify the specified board. </returns>
ILeanKitIntegration Create(long boardId, ILeanKitAccountAuth accountAuth);
ILeanKitIntegration Create(long boardId, ILeanKitAccountAuth accountAuth, IntegrationSettings settings);
}
}