Skip to content

Commit 396a524

Browse files
committed
BotBaseBuilder fix
1 parent 2db8e2c commit 396a524

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

TelegramBotBase/Builder/BotBaseBuilder.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,41 +399,41 @@ public ILanguageSelectionStage UseXML(string path)
399399
#region "Step 7 (Language)"
400400

401401
/// <inheritdoc cref="ILanguageSelectionStage.DefaultLanguage"/>
402-
public IBuildingStage DefaultLanguage()
402+
public IThreadingStage DefaultLanguage()
403403
{
404404
return this;
405405
}
406406

407407
/// <inheritdoc cref="ILanguageSelectionStage.UseEnglish"/>
408-
public IBuildingStage UseEnglish()
408+
public IThreadingStage UseEnglish()
409409
{
410410
Default.Language = new English();
411411
return this;
412412
}
413413

414414
/// <inheritdoc cref="ILanguageSelectionStage.UseGerman"/>
415-
public IBuildingStage UseGerman()
415+
public IThreadingStage UseGerman()
416416
{
417417
Default.Language = new German();
418418
return this;
419419
}
420420

421421
/// <inheritdoc cref="ILanguageSelectionStage.UsePersian"/>
422-
public IBuildingStage UsePersian()
422+
public IThreadingStage UsePersian()
423423
{
424424
Default.Language = new Persian();
425425
return this;
426426
}
427427

428428
/// <inheritdoc cref="ILanguageSelectionStage.UseRussian"/>
429-
public IBuildingStage UseRussian()
429+
public IThreadingStage UseRussian()
430430
{
431431
Default.Language = new Russian();
432432
return this;
433433
}
434434

435435
/// <inheritdoc cref="ILanguageSelectionStage.Custom"/>
436-
public IBuildingStage Custom(Localization language)
436+
public IThreadingStage Custom(Localization language)
437437
{
438438
Default.Language = language;
439439
return this;

TelegramBotBase/Builder/Interfaces/ILanguageSelectionStage.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,35 @@ public interface ILanguageSelectionStage
1111
/// Selects the default language for control usage. (English)
1212
/// </summary>
1313
/// <returns>The next stage in the building process.</returns>
14-
IBuildingStage DefaultLanguage();
14+
IThreadingStage DefaultLanguage();
1515

1616
/// <summary>
1717
/// Selects english as the default language for control labels.
1818
/// </summary>
1919
/// <returns>The next stage in the building process.</returns>
20-
IBuildingStage UseEnglish();
20+
IThreadingStage UseEnglish();
2121

2222
/// <summary>
2323
/// Selects german as the default language for control labels.
2424
/// </summary>
2525
/// <returns>The next stage in the building process.</returns>
26-
IBuildingStage UseGerman();
26+
IThreadingStage UseGerman();
2727

2828
/// <summary>
2929
/// Selects persian as the default language for control labels.
3030
/// </summary>
3131
/// <returns>The next stage in the building process.</returns>
32-
IBuildingStage UsePersian();
32+
IThreadingStage UsePersian();
3333

3434
/// <summary>
3535
/// Selects russian as the default language for control labels.
3636
/// </summary>
3737
/// <returns>The next stage in the building process.</returns>
38-
IBuildingStage UseRussian();
38+
IThreadingStage UseRussian();
3939

4040
/// <summary>
4141
/// Selects a custom language as the default language for control labels.
4242
/// </summary>
4343
/// <returns>The next stage in the building process.</returns>
44-
IBuildingStage Custom(Localization language);
44+
IThreadingStage Custom(Localization language);
4545
}

0 commit comments

Comments
 (0)