Kotlin enum / Mab > Kotlin

본문 바로가기

사이트 내 전체검색

Kotlin

Kotlin enum / Mab

작성일 20-06-26 10:03

페이지 정보

작성자sbLAB 조회 2,930회 댓글 0건

본문

[enum]


//Usage: val type = C_TypeEnums.일반사용자.typeInt ---=> 0 


companion object {

enum class C_TypeEnums(var typeInt:Int )

{

일반사용자(0), // 0:일반사용자

업체관리자(1), // 1:업체관리자

최고관리자(2)  // 2:최고관리자

}

}



[Mab]

//[Usage] SV.ErrMap_FAN[error.errorDetail]?.let { toast(it) } 


//Err-Msg Enums [Fast-Android-Networking library]

val ErrMap_FAN = mapOf("connectionError" to "인터넷연결확인",          

"responseFromServerError" to "서버연결확인[s]",

"parseError" to "서버상태확인[p]")             




댓글목록

등록된 댓글이 없습니다.

Copyright © 소유하신 도메인. All rights reserved.
PC 버전으로 보기