C# 클래스 Teamaton.Lib.LanguageService

파일 보기 프로젝트 열기: teamaton/speak-lib

공개 프로퍼티들

프로퍼티 타입 설명
CountryIso2ToLangIso2 string>.Dictionary

공개 메소드들

메소드 설명
Fill ( ListControl listControl ) : void

Removes all items before adding all languages alphabetically by name.

Fill ( ListControl listControl, System.Web.UI.WebControls.ListItem firstItem ) : void

Removes all items before adding all languages alphabetically by name.

GetAll ( ) : LanguageList
GetByCountryIso2 ( string countryIso2 ) : Language
GetByIso2 ( string iso2 ) : Language

Does not use the application cache.

GetByIso2 ( string iso2List ) : LanguageList
GetByName ( string name ) : Language
GetDutch ( ) : Language
GetEnglish ( ) : Language
GetFrench ( ) : Language
GetFromUrl ( Uri url ) : Language

Returns a Language object from the subdomain of the given URL. Default is German.

GetGerman ( ) : Language
GetItalian ( ) : Language
GetLangIso2FromCountryIso2 ( string countryIso2 ) : string

Returns the Iso2 code of the language that has been assigned as default for the country with the given Iso2 code.

GetPolish ( ) : Language
GetSpanish ( ) : Language
LanguageService ( ISession session ) : System

비공개 메소드들

메소드 설명
FillSorted ( ListControl listControl ) : void

메소드 상세

Fill() 공개 메소드

Removes all items before adding all languages alphabetically by name.
public Fill ( ListControl listControl ) : void
listControl System.Web.UI.WebControls.ListControl
리턴 void

Fill() 공개 메소드

Removes all items before adding all languages alphabetically by name.
public Fill ( ListControl listControl, System.Web.UI.WebControls.ListItem firstItem ) : void
listControl System.Web.UI.WebControls.ListControl
firstItem System.Web.UI.WebControls.ListItem
리턴 void

GetAll() 공개 메소드

public GetAll ( ) : LanguageList
리턴 LanguageList

GetByCountryIso2() 공개 메소드

public GetByCountryIso2 ( string countryIso2 ) : Language
countryIso2 string
리턴 Language

GetByIso2() 공개 메소드

Does not use the application cache.
public GetByIso2 ( string iso2 ) : Language
iso2 string
리턴 Language

GetByIso2() 공개 메소드

public GetByIso2 ( string iso2List ) : LanguageList
iso2List string
리턴 LanguageList

GetByName() 공개 메소드

public GetByName ( string name ) : Language
name string
리턴 Language

GetDutch() 공개 메소드

public GetDutch ( ) : Language
리턴 Language

GetEnglish() 공개 메소드

public GetEnglish ( ) : Language
리턴 Language

GetFrench() 공개 메소드

public GetFrench ( ) : Language
리턴 Language

GetFromUrl() 공개 메소드

Returns a Language object from the subdomain of the given URL. Default is German.
public GetFromUrl ( Uri url ) : Language
url System.Uri
리턴 Language

GetGerman() 공개 메소드

public GetGerman ( ) : Language
리턴 Language

GetItalian() 공개 메소드

public GetItalian ( ) : Language
리턴 Language

GetLangIso2FromCountryIso2() 공개 메소드

Returns the Iso2 code of the language that has been assigned as default for the country with the given Iso2 code.
public GetLangIso2FromCountryIso2 ( string countryIso2 ) : string
countryIso2 string
리턴 string

GetPolish() 공개 메소드

public GetPolish ( ) : Language
리턴 Language

GetSpanish() 공개 메소드

public GetSpanish ( ) : Language
리턴 Language

LanguageService() 공개 메소드

public LanguageService ( ISession session ) : System
session ISession
리턴 System

프로퍼티 상세

CountryIso2ToLangIso2 공개적으로 정적으로 프로퍼티

Mapping from country iso2 codes to language iso2 codes
public static Dictionary CountryIso2ToLangIso2
리턴 string>.Dictionary