Skip to content

Commit

Permalink
Merge pull request #206 from xibosignage/release/wolf
Browse files Browse the repository at this point in the history
Release v2 R257
  • Loading branch information
dasgarner authored Mar 16, 2021
2 parents b758e2a + f4be374 commit 89c5b89
Show file tree
Hide file tree
Showing 17 changed files with 469 additions and 1,190 deletions.
2 changes: 1 addition & 1 deletion InfoScreen.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Xibo Signage Ltd
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
Expand Down
7 changes: 4 additions & 3 deletions Logic/ApplicationSettings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Xibo Signage Ltd
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
Expand Down Expand Up @@ -50,9 +50,9 @@ private static readonly Lazy<ApplicationSettings>
/// </summary>
private List<string> ExcludedProperties;

public string ClientVersion { get; } = "2 R256.7";
public string ClientVersion { get; } = "2 R257.1";
public string Version { get; } = "5";
public int ClientCodeVersion { get; } = 256;
public int ClientCodeVersion { get; } = 257;

private ApplicationSettings()
{
Expand Down Expand Up @@ -579,6 +579,7 @@ public bool InDownloadWindow
public bool PreventSleep { get; set; }
public bool ScreenShotRequested { get; set; }
public bool FallbackToInternetExplorer { get; set; }
public bool IsRecordGeoLocationOnProofOfPlay { get; set; }

// XMDS Status Flags
private DateTime _xmdsLastConnection;
Expand Down
39 changes: 38 additions & 1 deletion Logic/CacheManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (C) 2020 Xibo Signage Ltd
* Copyright (C) 2021 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
Expand All @@ -19,6 +19,7 @@
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.IO;
Expand Down Expand Up @@ -51,6 +52,10 @@ public static CacheManager Instance
/// </summary>
private Collection<UnsafeItem> _unsafeItems = new Collection<UnsafeItem>();

/// <summary>
/// List of layout durations
/// </summary>
private Dictionary<int, int> _layoutDurations = new Dictionary<int, int>();

private CacheManager()
{
Expand Down Expand Up @@ -480,6 +485,38 @@ private string UnsafeListAsString()
}

#endregion

#region Layout Durations

/// <summary>
/// Record Layout Duration
/// </summary>
/// <param name="layoutId"></param>
/// <param name="duration"></param>
public void RecordLayoutDuration(int layoutId, int duration)
{
_layoutDurations[layoutId] = duration;
}

/// <summary>
/// Get Layout Duration
/// </summary>
/// <param name="layoutId"></param>
/// <param name="defaultValue"></param>
/// <returns></returns>
public int GetLayoutDuration(int layoutId, int defaultValue)
{
if (_layoutDurations.ContainsKey(layoutId))
{
return _layoutDurations[layoutId];
}
else
{
return defaultValue;
}
}

#endregion
}

/// <summary>
Expand Down
51 changes: 0 additions & 51 deletions Logic/InterruptState.cs

This file was deleted.

Loading

0 comments on commit 89c5b89

Please sign in to comment.