Release 4.0.0-preview1-00175
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.StreamRecorder / StreamRecorder / StreamRecorderNotifiedEventArgs.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18 using System.Collections.Generic;
19
20 namespace Tizen.Multimedia
21 {
22     /// <summary>
23     /// An extended Eventargs class which contains interrupted policy details, previous and current
24     /// state of the recorder.
25     /// </summary>
26     public class StreamRecorderNotifiedEventArgs : EventArgs
27     {
28         private StreamRecorderState _previous = StreamRecorderState.None;
29         private StreamRecorderState _current = StreamRecorderState.None;
30         private StreamRecorderNotify _notify = StreamRecorderNotify.None;
31
32         internal StreamRecorderNotifiedEventArgs(StreamRecorderState previous, StreamRecorderState current, StreamRecorderNotify notify)
33         {
34             _previous = previous;
35             _current = current;
36             _notify = notify;
37         }
38
39         /// <summary>
40         /// The previous state of the stream recorder.
41         /// </summary>
42         public StreamRecorderState Previous {
43             get {
44                 return _previous;
45             }
46         }
47
48         /// <summary>
49         /// The current state of the stream recorder.
50         /// </summary>
51         public StreamRecorderState Current {
52             get {
53                 return _current;
54             }
55         }
56
57         /// <summary>
58         /// The notify of the event.
59         /// </summary>
60         public StreamRecorderNotify Notify {
61             get {
62                 return _notify;
63             }
64         }
65     }
66 }