summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/pjsua/winrt/gui/uwp/VoipTasks/BackgroundOperations/BackgroundOperations.cs
blob: 8dd0cb5f696855a41597ef809eb3854ed1ad2a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
using System;

namespace VoipTasks.BackgroundOperations
{
    public enum BackgroundRequest
    {        
        NewOutgoingCall,
        EndCall,
        GetCallDuration,
        StartVideo,
        EndVideo,

        //Account request
        GetAccountInfo,
        ModifyAccount,

        //Endpoint request
        StartService,
        StopService,

        // Always keep this as the last option
        InValid
    }

    public enum ForegroundReguest
    {
        UpdateCallState,
        UpdateAcccountInfo,
        UpdateRegState,
        InValid
    }

    public enum NewCallArguments
    {
        DstURI
    }

    public enum ModifyAccountArguments
    {
        id,
        registrar,
        proxy,
        username,
        password
    }

    public enum UpdateCallStateArguments
    {
        CallState
    }

    public enum UpdateRegStateArguments
    {
        RegState
    }

    public enum UpdateAccountInfoArguments
    {
        id,
        registrar,
        proxy,
        username,
        password
    }

    public enum OperationResult
    {
        Succeeded,
        Failed
    }

    public static class BackgroundOperation
    {
        public static String AppServiceName
        {
            get { return _appServiceName; }
        }

        public static String NewBackgroundRequest
        {
            get { return _newBackgroundRequest; }
        }

        public static String Result
        {
            get { return _result; }
        }

        const String _appServiceName = "VoipTasks.AppService";
        const String _newBackgroundRequest = "NewBackgroundRequest";
        const String _result = "Result";
    }

    public static class ForegroundOperation
    {
        public static String NewForegroundRequest
        {
            get { return _newForegroundRequest; }
        }
        const String _newForegroundRequest = "NewForegroundRequest";
    }
}