Class OpenBiMajaExtensions
Inheritance
OpenBiMajaExtensions
Namespace: BiExcellence.OpenBi.Api.Commands.MajaAi
Assembly: BiExcellence.OpenBi.Api.MajaAi.dll
Syntax
public static class OpenBiMajaExtensions
Methods
GetMajaEntitiesAsync(IOpenBiSession, string, string, string, string, string, IEnumerable<string>, IDictionary<string, string>, CancellationToken)
Declaration
public static Task<IList<IMajaEntity>> GetMajaEntitiesAsync(this IOpenBiSession session, string baseEntityId, string filter, string query, string apiKey, string apiSecret, IEnumerable<string> packages, IDictionary<string, string> parameters, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | |
string | baseEntityId | |
string | filter | |
string | query | |
string | apiKey | |
string | apiSecret | |
IEnumerable<string> | packages | |
IDictionary<string, string> | parameters | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IList<IMajaEntity>> |
GetMajaTalentsAsync(IOpenBiSession, CancellationToken)
Declaration
public static Task<IList<IMajaTalent>> GetMajaTalentsAsync(this IOpenBiSession session, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IList<IMajaTalent>> |
QueryMajaForAnswersAsync(IOpenBiSession, string, string, string, IDictionary<string, string>, CancellationToken)
Declaration
public static Task<IList<IMajaQueryAnswer>> QueryMajaForAnswersAsync(this IOpenBiSession session, string query, string apiKey, string apiSecret, IDictionary<string, string> parameters, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | |
string | query | |
string | apiKey | |
string | apiSecret | |
IDictionary<string, string> | parameters | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IList<IMajaQueryAnswer>> |
QueryMajaForAnswersAsync(IOpenBiSession, string, string, string, IEnumerable<string>, IDictionary<string, string>, CancellationToken)
Declaration
public static Task<IList<IMajaQueryAnswer>> QueryMajaForAnswersAsync(this IOpenBiSession session, string query, string apiKey, string apiSecret, IEnumerable<string> packages, IDictionary<string, string> parameters, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | |
string | query | |
string | apiKey | |
string | apiSecret | |
IEnumerable<string> | packages | |
IDictionary<string, string> | parameters | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IList<IMajaQueryAnswer>> |
QueryMajaForAnswersAsync(IOpenBiSession, string, string, string, IEnumerable<string>, CancellationToken)
Declaration
public static Task<IList<IMajaQueryAnswer>> QueryMajaForAnswersAsync(this IOpenBiSession session, string query, string apiKey, string apiSecret, IEnumerable<string> packages, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | |
string | query | |
string | apiKey | |
string | apiSecret | |
IEnumerable<string> | packages | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IList<IMajaQueryAnswer>> |
QueryMajaForAnswersAsync(IOpenBiSession, string, string, string, CancellationToken)
Declaration
public static Task<IList<IMajaQueryAnswer>> QueryMajaForAnswersAsync(this IOpenBiSession session, string query, string apiKey, string apiSecret, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | |
string | query | |
string | apiKey | |
string | apiSecret | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IList<IMajaQueryAnswer>> |
UploadMajaUserFileAsync(IOpenBiSession, Stream, string, CancellationToken)
Declaration
public static Task<string> UploadMajaUserFileAsync(this IOpenBiSession session, Stream stream, string filename, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiSession | session | |
Stream | stream | |
string | filename | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<string> |