76 lines
2.4 KiB
C#
76 lines
2.4 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using xIdentityModels.Models;
|
|
|
|
namespace xServices.TermsConditions.Interfaces
|
|
{
|
|
public interface IXTermsComditionsProvider
|
|
{
|
|
//
|
|
#region Actions ...
|
|
/// <summary>
|
|
/// Retrieved all Exists Languages Terms and Conditions ...
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<string>> TermsLanguages();
|
|
|
|
/// <summary>
|
|
/// Check Has Terms and Conditions based on Specified Language ...
|
|
/// </summary>
|
|
/// <param name="language">if null, used Default Language ...</param>
|
|
/// <returns></returns>
|
|
Task<bool> HasTerms(string language = null);
|
|
|
|
/// <summary>
|
|
/// Retrieve Terms and Conditions for Specified Language ...
|
|
/// </summary>
|
|
/// <param name="language">if null, used Default Language ...</param>
|
|
/// <returns></returns>
|
|
Task<string> GetTerms(string language = null);
|
|
|
|
/// <summary>
|
|
/// Add Terms and Conditions for Specified Language ...
|
|
/// </summary>
|
|
/// <param name="language"></param>
|
|
/// <param name="terms"></param>
|
|
/// <param name="userInfo"></param>
|
|
/// <param name="connectionId"></param>
|
|
/// <returns></returns>
|
|
Task<string> AddTerms(
|
|
string language,
|
|
string terms,
|
|
XUserClaimsInfoDto userInfo = null,
|
|
string connectionId = null
|
|
);
|
|
|
|
/// <summary>
|
|
/// Remove Terms and Conditions of Specified Language ...
|
|
/// </summary>
|
|
/// <param name="language"></param>
|
|
/// <param name="userInfo"></param>
|
|
/// <param name="connectionId"></param>
|
|
/// <returns></returns>
|
|
Task<bool> RemoveTerms(
|
|
string language,
|
|
XUserClaimsInfoDto userInfo = null,
|
|
string connectionId = null
|
|
);
|
|
|
|
/// <summary>
|
|
/// Update Terms and Conditions of Specified Language ...
|
|
/// </summary>
|
|
/// <param name="language"></param>
|
|
/// <param name="terms"></param>
|
|
/// <param name="userInfo"></param>
|
|
/// <param name="connectionId"></param>
|
|
/// <returns></returns>
|
|
Task<bool> UpdateTerms(
|
|
string language,
|
|
string terms,
|
|
XUserClaimsInfoDto userInfo = null,
|
|
string connectionId = null
|
|
);
|
|
#endregion
|
|
}
|
|
} |