枚举

enum MovieRecordState {

    case new, downloaded, filtered, failed

}




/**

打印级别枚举.

*/

public enum MTLogLevel : Int {

    /// 信息

    case info = 1

    /// 警告

    case warm = 2

    /// 错误

    case error = 3

}

你可能感兴趣的:(枚举)