Skip to content

Commit

Permalink
[release] 1.4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zxbmmmmmmmmm committed Aug 25, 2024
1 parent 19b6485 commit 95121c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions FluentWeather.Abstraction/Models/Announcement/Announcement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
using System.Text;

namespace FluentWeather.Abstraction.Models;
public class Announcement
public class Announcement(int id,string name)
{
public required int Id { get; set; }
public required string Name { get; set; }
public int Id { get; set; } = id;
public string Name { get; set; } = name;
public bool IsAvailable => DateTime.Now <= ExpiredAt && AvailableRegions.Contains(RegionInfo.CurrentRegion.Name);
public bool IsVisible { get; set; }
public bool CloseWhenView { get; set; }
Expand All @@ -24,14 +24,14 @@ public class Announcement
public DateTime ExpiredAt { get; set; }
public string LinkText { get; set; } = "View more";



public static List<Announcement> GetAllAnnouncements()
{
return [
new Announcement
new Announcement(0,"ms-awards-2024_zh")
{
Id = 0,
IsVisible = true,
Name = "ms-awards-2024_zh",
Title = "喜欢此应用?",
Content = "在微软商店年度应用评选上为我们投票!",
LinkText = "详情",
Expand Down
2 changes: 1 addition & 1 deletion FluentWeather.Uwp/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="BettaFish.SkylineWeather"
Publisher="CN=F75CF79A-52F1-4629-8214-C9C6D329E85A"
Version="1.3.1.0" />
Version="1.4.0.0" />

<mp:PhoneIdentity PhoneProductId="8b462067-d8ec-428c-a0f1-2f4fb5f9b377" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down

0 comments on commit 95121c7

Please sign in to comment.