C# Class OpenTween.Bing

Datei anzeigen Open project: opentween/OpenTween Class Usage Examples

Public Methods

Method Description
Bing ( ) : System
Bing ( HttpClient http ) : System
GetIndexFromLanguageEnum ( string lang ) : int
GetLanguageEnumFromIndex ( int index ) : string
TranslateAsync ( string text, string langFrom, string langTo ) : Task

Microsoft Translator API を使用した翻訳を非同期に行います

Method Details

Bing() public method

public Bing ( ) : System
return System

Bing() public method

public Bing ( HttpClient http ) : System
http System.Net.Http.HttpClient
return System

GetIndexFromLanguageEnum() public static method

public static GetIndexFromLanguageEnum ( string lang ) : int
lang string
return int

GetLanguageEnumFromIndex() public static method

public static GetLanguageEnumFromIndex ( int index ) : string
index int
return string

TranslateAsync() public method

Microsoft Translator API を使用した翻訳を非同期に行います
public TranslateAsync ( string text, string langFrom, string langTo ) : Task
text string
langFrom string
langTo string
return Task