mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	* Further split inbound and outbound messages * Fix datatype for inbound start messages * fixes from review
		
			
				
	
	
		
			23 lines
		
	
	
		
			547 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			547 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Text.Json.Serialization;
 | 
						|
using MediaBrowser.Model.Session;
 | 
						|
 | 
						|
namespace MediaBrowser.Controller.Net;
 | 
						|
 | 
						|
/// <summary>
 | 
						|
/// Websocket message without data.
 | 
						|
/// </summary>
 | 
						|
public abstract class WebSocketMessage
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// Gets or sets the type of the message.
 | 
						|
    /// TODO make this abstract and get only.
 | 
						|
    /// </summary>
 | 
						|
    public virtual SessionMessageType MessageType { get; set; }
 | 
						|
 | 
						|
    /// <summary>
 | 
						|
    /// Gets or sets the server id.
 | 
						|
    /// </summary>
 | 
						|
    [JsonIgnore]
 | 
						|
    public string? ServerId { get; set; }
 | 
						|
}
 |