Skip to content

Commit

Permalink
EveCrest: Release
Browse files Browse the repository at this point in the history
  • Loading branch information
ezet committed Mar 17, 2016
1 parent 8ad05eb commit c77fff8
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 18 deletions.
12 changes: 12 additions & 0 deletions EveLib.EveCrest/EveCrest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,22 @@ public EveCrest(string refreshToken, string encodedKey)
// return QueryOptionsAsync(uri).Result;
//}

/// <summary>
/// Queries the options asynchronous.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="href">The href.</param>
/// <returns>Task&lt;CrestOptions&gt;.</returns>
public Task<CrestOptions> QueryOptionsAsync<T>(ICrestResource<T> href) where T : class, ICrestResource<T> {
return optionsAsync(href.Uri.ToString());
}

/// <summary>
/// Queries the options.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="href">The href.</param>
/// <returns>CrestOptions.</returns>
public CrestOptions QueryOptions<T>(ICrestResource<T> href) where T : class, ICrestResource<T> {
return QueryOptionsAsync(href).Result;
}
Expand Down
2 changes: 1 addition & 1 deletion EveLib.EveCrest/EveLib.EveCrest.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- <iconUrl>http://ICON_URL_HERE_OR_DELETE_THIS_LINE</iconUrl> -->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>https://github.com/ezet/evelib/releases/tag/EveCrest_v3.3.1</releaseNotes>
<releaseNotes>https://github.com/ezet/evelib/releases/tag/EveCrest_v3.3.2</releaseNotes>
<tags>EveLib EveCrest API EveOnline Eve Online Crest</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="6.0.0" />
Expand Down
20 changes: 13 additions & 7 deletions EveLib.EveCrest/Models/EditableEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,23 @@ namespace eZet.EveLib.EveCrestModule.Models {
/// </summary>
[DataContract]
public class EditableEntity : IEditableEntity {
/// <summary>
/// Gets or sets a value indicating whether this instance is new.
/// </summary>
/// <value><c>true</c> if this instance is new; otherwise, <c>false</c>.</value>
//public bool SaveAsNew { get; set; }

/// <summary>
/// Gets or sets the eve crest.
/// </summary>
/// <value>The eve crest.</value>
public EveCrest EveCrest { get; set; }

//[DataMember(Name = "href")]
/// <summary>
/// Gets or sets the post URI.
/// </summary>
/// <value>The post URI.</value>
public string PostUri { get; set; }


/// <summary>
/// Gets or sets the href.
/// </summary>
/// <value>The href.</value>
[DataMember(Name = "href")]
public string Href { get; set; }

Expand Down Expand Up @@ -73,6 +75,10 @@ public class EditableEntity : IEditableEntity {
return DeleteAsync().Result;
}

/// <summary>
/// Shoulds the serialize href.
/// </summary>
/// <returns>System.Boolean.</returns>
public bool ShouldSerializeHref() => false;

}
Expand Down
8 changes: 6 additions & 2 deletions EveLib.EveCrest/Models/ICrestResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// Created : 12-16-2014
//
// Last Modified By : Lars Kristian
// Last Modified On : 12-17-2014
// Last Modified On : 03-17-2016
// ***********************************************************************
// <copyright file="ICrestResource.cs" company="">
// <copyright file="ICrestResource.cs" company="Lars Kristian Dahl">
// Copyright (c) . All rights reserved.
// </copyright>
// <summary></summary>
Expand All @@ -19,6 +19,10 @@
using eZet.EveLib.EveCrestModule.Models.Links;

namespace eZet.EveLib.EveCrestModule.Models {
/// <summary>
/// Interface ICrestResource
/// </summary>
/// <typeparam name="T"></typeparam>
public interface ICrestResource<out T> where T : class, ICrestResource<T> {
/// <summary>
/// Gets or sets the crest instance used to query resources.
Expand Down
14 changes: 8 additions & 6 deletions EveLib.EveCrest/Models/IEditableEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ namespace eZet.EveLib.EveCrestModule.Models {
/// Interface IEditableEntity
/// </summary>
public interface IEditableEntity {
/// <summary>
/// Gets or sets a value indicating whether this instance is new.
/// </summary>
/// <value><c>true</c> if this instance is new; otherwise, <c>false</c>.</value>
//bool SaveAsNew { get; set; }

/// <summary>
/// Gets or sets the eve crest.
/// </summary>
/// <value>The eve crest.</value>
EveCrest EveCrest { get; set; }


/// <summary>
/// Gets or sets the post URI.
/// </summary>
/// <value>The post URI.</value>
string PostUri { get; set; }

/// <summary>
/// Gets or sets the href.
/// </summary>
/// <value>The href.</value>
string Href { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions EveLib.EveCrest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("3.3.1.0")]
[assembly: AssemblyFileVersion("3.3.1.0")]
[assembly: AssemblyVersion("3.3.2.0")]
[assembly: AssemblyFileVersion("3.3.2.0")]
[assembly: NeutralResourcesLanguage("en")]

0 comments on commit c77fff8

Please sign in to comment.