Skip to content

Commit

Permalink
little more v4.1 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzzerd committed Oct 15, 2019
1 parent 2c541ff commit b7fd803
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/FMData.Rest/FileMakerRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class FileMakerRestClient : FileMakerApiClientBase, IFileMakerApiClient
/// <summary>
/// Indicates that the client is authenticated and has a token within the refresh window.
/// </summary>
public bool IsAuthenticated => !String.IsNullOrEmpty(dataToken) && DateTime.UtcNow.Subtract(dataTokenLastUse).TotalMinutes <= tokenExpiration;
public bool IsAuthenticated => !string.IsNullOrEmpty(dataToken) && DateTime.UtcNow.Subtract(dataTokenLastUse).TotalMinutes <= tokenExpiration;

#region FM DATA SPECIFIC
internal readonly int tokenExpiration = 15;
Expand Down Expand Up @@ -575,6 +575,7 @@ public async Task<HttpResponseMessage> ExecuteRequestAsync(
/// Helper For Getting Raw Responses from Data API.
/// </summary>
public Task<HttpResponseMessage> ExecuteRequestAsync<T>(ICreateRequest<T> req) => ExecuteRequestAsync(HttpMethod.Post, CreateEndpoint(req.Layout), req);

/// <summary>
/// Helper For Getting Raw Responses from Data API.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/FMData.Rest/IFileMakerRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ Task<HttpResponseMessage> ExecuteRequestAsync(
/// Helper For Getting Raw Responses from Data API.
/// </summary>
Task<HttpResponseMessage> ExecuteRequestAsync<T>(ICreateRequest<T> req);

/// <summary>
/// Helper For Getting Raw Responses from Data API.
/// </summary>
Task<HttpResponseMessage> ExecuteRequestAsync<T>(IEditRequest<T> req);

/// <summary>
/// Helper For Getting Raw Responses from Data API.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion src/FMData.Rest/NullJsonWriter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Newtonsoft.Json;
using System;
using System.Globalization;
using System.IO;

namespace FMData.Rest
Expand Down
2 changes: 1 addition & 1 deletion src/FMData.Rest/RequestQueryInstanceConverter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Newtonsoft.Json;
using System;
using Newtonsoft.Json.Linq;
using System;

namespace FMData.Rest
{
Expand Down
3 changes: 0 additions & 3 deletions src/FMData.Rest/Responses/FindResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;

namespace FMData.Rest.Responses
{
/// <summary>
Expand Down
4 changes: 1 addition & 3 deletions src/FMData.Xml/Responses/BaseResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Generic;

namespace FMData.Xml.Responses
{
Expand Down
6 changes: 1 addition & 5 deletions src/FMData/Responses/ActionResponse.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace FMData
namespace FMData
{
/// <summary>
/// Type holder for the nested 'Response' Type
Expand Down
4 changes: 1 addition & 3 deletions src/FMData/Responses/IResponse.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Generic;

namespace FMData
{
Expand Down

0 comments on commit b7fd803

Please sign in to comment.