浏览代码

changed sessions id to a string

Luke Pulverenti 11 年之前
父节点
当前提交
b7d8e3a9dd
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      MediaBrowser.Controller/Dto/SessionInfoDtoBuilder.cs
  2. 1 1
      MediaBrowser.Model/Session/SessionInfoDto.cs

+ 1 - 1
MediaBrowser.Controller/Dto/SessionInfoDtoBuilder.cs

@@ -20,7 +20,7 @@ namespace MediaBrowser.Controller.Dto
                 Client = session.Client,
                 DeviceId = session.DeviceId,
                 DeviceName = session.DeviceName,
-                Id = session.Id,
+                Id = session.Id.ToString("N"),
                 LastActivityDate = session.LastActivityDate,
                 NowPlayingPositionTicks = session.NowPlayingPositionTicks,
                 SupportsRemoteControl = session.SupportsRemoteControl,

+ 1 - 1
MediaBrowser.Model/Session/SessionInfoDto.cs

@@ -9,7 +9,7 @@ namespace MediaBrowser.Model.Session
         /// Gets or sets the id.
         /// </summary>
         /// <value>The id.</value>
-        public Guid Id { get; set; }
+        public string Id { get; set; }
 
         /// <summary>
         /// Gets or sets the user id.