Beispiel #1
0
        public static IMixEvaluator MemberMixEntryModelToMixEvaluator(MixType mixType, string input)
        {
            MemberEvalType memberEvalType = MemberEvalType.Unknown;

            switch (mixType & MixType.SUBTYPE_MASK)
            {
            case MixType.MIXMEMBER_SUBTYPE:
                memberEvalType = MemberEvalType.Mix;
                break;

            case MixType.PLAYLISTMEMBER_SUBTYPE:
                memberEvalType = MemberEvalType.Playlist;
                break;

            default:
                DebugHelper.Alert(new CallerInfo(), "Unexpected MEMBER_TYPE MixType {0}", mixType);
                break;
            }

            return(new MemberMixEvaluator(int.Parse(input), memberEvalType, mixType));
        }
 public MemberMixEvaluator(int target, MemberEvalType evalType, MixType type)
 {
     Target   = target;
     EvalType = evalType;
     MixType  = type;
 }
 public MemberMixEvaluator(int target, MemberEvalType evalType, MixType type)
 {
     Target = target;
     EvalType = evalType;
     MixType = type;
 }