Last active
October 27, 2015 21:42
-
-
Save KentarouKanno/1a28e9113b414832acb8 to your computer and use it in GitHub Desktop.
アプリ内で使用するメッセージを管理するクラス
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 使用例 | |
let errorMessage = MessageManager.LoginView.IDMaxLengthError | |
//=> IDは10桁で入力してください。 | |
struct MessageManager { | |
/** 入力画面 */ | |
struct InputView { | |
/** 年齢を入力してください。 */ | |
static let noInputBirthDay = "年齢を入力してください。" | |
/** 性別を選択してください。 */ | |
static let noSelectGender = "性別を選択してください。" | |
/** 全角で入力してください。 */ | |
static let noFullWidthInput = "全角で入力してください。" | |
} | |
/** ログイン画面 */ | |
struct LoginView { | |
/** IDを入力してください。 */ | |
static let noInputID = "IDを入力してください。" | |
/** IDは10桁で入力してください。 */ | |
static let IDMaxLengthError = "IDは10桁で入力してください。" | |
/** パスワードを入力してください。 */ | |
static let noInputPassWord = "パスワードを入力してください。" | |
} | |
/** ネットワークエラー */ | |
struct NetworkError { | |
/** 圏外です */ | |
static let noConnectError = "圏外です " | |
/** タイムアウトしました。 */ | |
static let connectTimeOutError = "タイムアウトしました。" | |
} | |
} |
Author
KentarouKanno
commented
Oct 27, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment