IDynamicTexts Interface
Namespace: PTS.Modules.DynamicTexts.Domain
Assembly: PTS.Modules.DynamicTexts.dll
A service providing access to dynamic texts.
Syntax
public interface IDynamicTexts
Methods
Get(Int64, LanguageCode)
Gets dynamic text entity for given id and language code.
Declaration
DynamicText Get(long id, LanguageCode lang)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| LanguageCode | lang | The language code. |
Returns
| Type | Description |
|---|---|
| DynamicText | The dynamic text. |
GetAsync(Int64, LanguageCode)
Gets dynamic text entity asynchronously for given id and language code.
Declaration
Task<DynamicText> GetAsync(long id, LanguageCode lang)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| LanguageCode | lang | The language code. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DynamicText> | A task returning the dynamic text. |
GetRawText(Int64, LanguageCode)
Gets raw text for given id and language code.
Declaration
string GetRawText(long id, LanguageCode lang)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| LanguageCode | lang | The language code. |
Returns
| Type | Description |
|---|---|
| System.String | The raw text. |
GetRawText(Int64, CultureInfo)
Gets raw text for given id and culture. If culture is null, then CultureInfo.CurrentCulture is used.
Declaration
string GetRawText(long id, CultureInfo culture = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| System.Globalization.CultureInfo | culture | The culture. If null, CultureInfo.CurrentCulture is used. |
Returns
| Type | Description |
|---|---|
| System.String | The raw text. |
GetRawTextAsync(Int64, LanguageCode)
Gets raw text asynchronously for given id and language code.
Declaration
Task<string> GetRawTextAsync(long id, LanguageCode lang)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| LanguageCode | lang | The language code. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> | A task returning the raw text. |
GetRawTextAsync(Int64, CultureInfo)
Gets raw text asynchronously for given id and culture. If culture is null, then CultureInfo.CurrentCulture is used.
Declaration
Task<string> GetRawTextAsync(long id, CultureInfo culture = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| System.Globalization.CultureInfo | culture | The culture. If null, CultureInfo.CurrentCulture is used. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> | A task returning the raw text. |
GetText(Int64, LanguageCode, Object[])
Gets formatted text for given id, language code and arguments.
Declaration
string GetText(long id, LanguageCode lang, params object[] arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| LanguageCode | lang | The language code. |
| System.Object[] | arguments | The arguments which are going to be formatted into the text. |
Returns
| Type | Description |
|---|---|
| System.String | The formatted text. |
GetText(Int64, CultureInfo, Object[])
Gets formatted text for given id, culture and arguments. If culture is null, then CultureInfo.CurrentCulture is used.
Declaration
string GetText(long id, CultureInfo culture, params object[] arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| System.Globalization.CultureInfo | culture | The culture. If null, CultureInfo.CurrentCulture is used. |
| System.Object[] | arguments | The arguments which are going to be formatted into the text. |
Returns
| Type | Description |
|---|---|
| System.String | The formatted text. |
GetText(Int64, Object[])
Gets formatted text for given id and arguments.
Declaration
string GetText(long id, params object[] arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| System.Object[] | arguments | The arguments which are going to be formatted into the text. |
Returns
| Type | Description |
|---|---|
| System.String | The formatted text. |
GetTextAsync(Int64, LanguageCode, Object[])
Gets formatted text asynchronously for given id, language code and arguments.
Declaration
Task<string> GetTextAsync(long id, LanguageCode lang, params object[] arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| LanguageCode | lang | The language code. |
| System.Object[] | arguments | The arguments which are going to be formatted into the text. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> | A task returning the formatted text. |
GetTextAsync(Int64, CultureInfo, Object[])
Gets formatted text asynchronously for given id, culture and arguments. If culture is null, then CultureInfo.CurrentCulture is used.
Declaration
Task<string> GetTextAsync(long id, CultureInfo culture, params object[] arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| System.Globalization.CultureInfo | culture | The culture. If null, CultureInfo.CurrentCulture is used. |
| System.Object[] | arguments | The arguments which are going to be formatted into the text. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> | A task returning the formatted text. |
GetTextAsync(Int64, Object[])
Gets formatted text asynchronously for given id and arguments.
Declaration
Task<string> GetTextAsync(long id, params object[] arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id | The id. |
| System.Object[] | arguments | The arguments which are going to be formatted into the text. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> | A task returning the formatted text. |