[Multimedia] Deprecate constructors related to ElmSharp (#4540)
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.Remoting / WebRTC / WebRTCSignalingEventArgs.cs
1 /*
2  * Copyright (c) 2021 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.ComponentModel;
19
20 namespace Tizen.Multimedia.Remoting
21 {
22     /// <summary>
23     /// Provides data for the <see cref="WebRTCSignalingClient.SignalingMessage"/> event.
24     /// </summary>
25     [EditorBrowsable(EditorBrowsableState.Never)]
26     public class WebRTCSignalingEventArgs : EventArgs
27     {
28         [EditorBrowsable(EditorBrowsableState.Never)]
29         internal WebRTCSignalingEventArgs(SignalingMessageType type, string message)
30         {
31             MessageType = type;
32             Message = message;
33         }
34
35         /// <summary>
36         /// Gets the signaling message type.
37         /// </summary>
38         /// <value>The signaling message type.</value>
39         [EditorBrowsable(EditorBrowsableState.Never)]
40         public SignalingMessageType MessageType { get; }
41
42         /// <summary>
43         /// Gets the message from remote peer.
44         /// </summary>
45         /// <value>The message.</value>
46         [EditorBrowsable(EditorBrowsableState.Never)]
47         public string Message { get; }
48
49         /// <summary>
50         /// Returns a string that represents the current object.
51         /// </summary>
52         /// <returns>A string that represents the current object.</returns>
53         [EditorBrowsable(EditorBrowsableState.Never)]
54         public override string ToString() => $"MessageType={MessageType}, Message={Message}";
55     }
56 }