2 * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 using System.ComponentModel;
20 namespace Tizen.Multimedia.Remoting
23 /// Provides data for the <see cref="WebRTCSignalingClient.SignalingMessage"/> event.
25 /// <since_tizen> 9 </since_tizen>
26 [EditorBrowsable(EditorBrowsableState.Never)]
27 public class WebRTCSignalingEventArgs : EventArgs
29 [EditorBrowsable(EditorBrowsableState.Never)]
30 internal WebRTCSignalingEventArgs(SignalingMessageType type, string message)
37 /// Gets the signaling message type.
39 /// <value>The signaling message type.</value>
40 /// <since_tizen> 9 </since_tizen>
41 [EditorBrowsable(EditorBrowsableState.Never)]
42 public SignalingMessageType MessageType { get; }
45 /// Gets the message from remote peer.
47 /// <value>The message.</value>
48 /// <since_tizen> 9 </since_tizen>
49 [EditorBrowsable(EditorBrowsableState.Never)]
50 public string Message { get; }
53 /// Returns a string that represents the current object.
55 /// <returns>A string that represents the current object.</returns>
56 /// <since_tizen> 9 </since_tizen>
57 [EditorBrowsable(EditorBrowsableState.Never)]
58 public override string ToString() => $"MessageType={MessageType}, Message={Message}";