示例#1
0
 public MatrixSpec(EMatrixSpecApiVersion supportedVer, EMatrixSpecApi api, string path, EMatrixSpecApiVersion lastVersion = EMatrixSpecApiVersion.Unknown)
 {
     Api         = api;
     Path        = path;
     MinVersion  = supportedVer;
     LastVersion = lastVersion;
 }
示例#2
0
        public static string GetStringForVersion(EMatrixSpecApiVersion version)
        {
            switch (version)
            {
            case EMatrixSpecApiVersion.R001:
                return("r0.0.1");

            case EMatrixSpecApiVersion.R010:
                return("r0.1.0");

            case EMatrixSpecApiVersion.R020:
                return("r0.2.0");

            case EMatrixSpecApiVersion.R030:
                return("r0.3.0");

            case EMatrixSpecApiVersion.R040:
                return("r0.4.0");

            default:
                return("unstable");
            }
        }
示例#3
0
 public MatrixSpec(EMatrixSpecApiVersion supportedVer, EMatrixSpecApi api, string path)
 {
     Api     = api;
     Path    = path;
     Version = supportedVer;
 }