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 [EditorBrowsable(EditorBrowsableState.Never)]
26 public class WebRTCSignalingEventArgs : EventArgs
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 internal WebRTCSignalingEventArgs(SignalingMessageType type, string message)
36 /// Gets the signaling message type.
38 /// <value>The signaling message type.</value>
39 [EditorBrowsable(EditorBrowsableState.Never)]
40 public SignalingMessageType MessageType { get; }
43 /// Gets the message from remote peer.
45 /// <value>The message.</value>
46 [EditorBrowsable(EditorBrowsableState.Never)]
47 public string Message { get; }
50 /// Returns a string that represents the current object.
52 /// <returns>A string that represents the current object.</returns>
53 [EditorBrowsable(EditorBrowsableState.Never)]
54 public override string ToString() => $"MessageType={MessageType}, Message={Message}";