// Code generated by Microsoft Kiota - DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

package callrecords
type UserFeedbackRating int

const (
    NOTRATED_USERFEEDBACKRATING UserFeedbackRating = iota
    BAD_USERFEEDBACKRATING
    POOR_USERFEEDBACKRATING
    FAIR_USERFEEDBACKRATING
    GOOD_USERFEEDBACKRATING
    EXCELLENT_USERFEEDBACKRATING
    UNKNOWNFUTUREVALUE_USERFEEDBACKRATING
)

func (i UserFeedbackRating) String() string {
    return []string{"notRated", "bad", "poor", "fair", "good", "excellent", "unknownFutureValue"}[i]
}
func ParseUserFeedbackRating(v string) (any, error) {
    result := NOTRATED_USERFEEDBACKRATING
    switch v {
        case "notRated":
            result = NOTRATED_USERFEEDBACKRATING
        case "bad":
            result = BAD_USERFEEDBACKRATING
        case "poor":
            result = POOR_USERFEEDBACKRATING
        case "fair":
            result = FAIR_USERFEEDBACKRATING
        case "good":
            result = GOOD_USERFEEDBACKRATING
        case "excellent":
            result = EXCELLENT_USERFEEDBACKRATING
        case "unknownFutureValue":
            result = UNKNOWNFUTUREVALUE_USERFEEDBACKRATING
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeUserFeedbackRating(values []UserFeedbackRating) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i UserFeedbackRating) isMultiValue() bool {
    return false
}
