コード例 #1
0
        private string StringForDisplayType(TLCallDisplayType type)
        {
            switch (type)
            {
            case TLCallDisplayType.Outgoing:
                return(Strings.Resources.CallMessageOutgoing);

            case TLCallDisplayType.Incoming:
                return(Strings.Resources.CallMessageIncoming);

            case TLCallDisplayType.Cancelled:
                return(Strings.Resources.CallMessageOutgoingMissed);

            case TLCallDisplayType.Missed:
                return(Strings.Resources.CallMessageIncomingMissed);

            default:
                return(null);
            }
        }
コード例 #2
0
ファイル: CallsViewModel.cs プロジェクト: rememberber/Unigram
        private string StringForDisplayType(TLCallDisplayType type)
        {
            switch (type)
            {
            case TLCallDisplayType.Outgoing:
                return(AppResources.CallOutgoingShort);

            case TLCallDisplayType.Incoming:
                return(AppResources.CallIncomingShort);

            case TLCallDisplayType.Cancelled:
                return(AppResources.CallCanceledShort);

            case TLCallDisplayType.Missed:
                return(AppResources.CallMissedShort);

            default:
                return(null);
            }
        }