Skip to content

Commit

Permalink
styling compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Feb 8, 2023
1 parent a81375c commit 25d4517
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 168 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright (c) by Terradue Srl. All Rights Reserved.
// License under the AGPL, Version 3.0.
// File Name: DisasterStacExtensionExtensions.cs

namespace Stac.Extensions.Disaster
{
/// <summary>
/// Extension methods for accessing EO extension
/// </summary>
public static class DisasterStacExtensionExtensions
{
/// <summary>
/// Initilize a DisastersCharterStacExtension class from a STAC item
/// </summary>
/// <param name="stacObject">The STAC item</param>
/// <returns>The DisastersCharterStacExtension class</returns>
public static DisastersCharterStacExtension DisasterExtension(this IStacObject stacObject)
{
return new DisastersCharterStacExtension(stacObject);
}

/// <summary>
/// Initilize a DisastersCharterStacExtension
/// </summary>
/// <param name="disasterStacExtension">The DisastersCharterStacExtension to initilize</param>
/// <param name="disastersItemClass">The class of the item</param>
/// <param name="activationId">The activation id</param>
/// <param name="callIds">The call ids</param>
public static void Init(this DisastersCharterStacExtension disasterStacExtension, DisastersItemClass disastersItemClass, int activationId, int[] callIds)
{
disasterStacExtension.Class = disastersItemClass;
disasterStacExtension.ActivationId = activationId;
disasterStacExtension.CallIds = callIds;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,24 @@ namespace Stac.Extensions.Disaster
/// </summary>
public enum DisastersActivationStatus
{
#pragma warning disable SA1602 // Enumeration items should be documented
/// <summary>
///
/// </summary>
[JsonProperty("open")]
Open,


/// <summary>
///
/// </summary>
[JsonProperty("closed")]
Closed,


/// <summary>
///
/// </summary>
[JsonProperty("archived")]
Archived,
#pragma warning restore SA1602 // Enumeration items should be documented
}
}
Loading

0 comments on commit 25d4517

Please sign in to comment.