コード例 #1
0
        public static string ToString(Meziantou.GitLab.JobStatus value)
        {
            if ((value == Meziantou.GitLab.JobStatus.Created))
            {
                return("created");
            }

            if ((value == Meziantou.GitLab.JobStatus.Pending))
            {
                return("pending");
            }

            if ((value == Meziantou.GitLab.JobStatus.Running))
            {
                return("running");
            }

            if ((value == Meziantou.GitLab.JobStatus.Failed))
            {
                return("failed");
            }

            if ((value == Meziantou.GitLab.JobStatus.Success))
            {
                return("success");
            }

            if ((value == Meziantou.GitLab.JobStatus.Canceled))
            {
                return("canceled");
            }

            if ((value == Meziantou.GitLab.JobStatus.Skipped))
            {
                return("skipped");
            }

            if ((value == Meziantou.GitLab.JobStatus.Manual))
            {
                return("manual");
            }

            throw new System.ArgumentOutOfRangeException(nameof(value), string.Concat("Value '", value.ToString(), "' is not valid"));
        }
コード例 #2
0
 public void AppendRawParameter(Meziantou.GitLab.JobStatus value)
 {
     this.Append(Meziantou.GitLab.Serialization.EnumMember.ToString(value));
 }