Skip to content

PrimePenguin/PrimePenguinSharp

Repository files navigation

PrimePenguinSharp: A .NET library for PrimePenguin.

Steps to Generate SDK

  • Open PrimePenguinService.nswag in NSwagStudio and get fresh copy for Schema.
  • Generate the file with new schema
  • Use VSCode to Open the generated PrimePenguinService.cs file.
  • Search & Replace System.DateTime with DateTime
  • Search & Replace public System.Collections.Generic.IEnumerable with public System.Collections.Generic.List
  • Search & Replace the following with empty character:
    • System.Threading.Tasks.
    • Newtonsoft.Json.
    • System.Collections.Generic.
  • Add the following using statements:
    • using System;
    • using System.Threading.Tasks;
    • using System.Collections.Generic;
    • using Newtonsoft.Json;
  • Search & Replace Task<List< with Ta11111sk<List<.
  • Search & Replace ReadObjectResponseAsync<List< with Read11111ObjectResponseAsync<List<.
  • Select Task< and press CTRL + SHIFT + L to select all occurences. Append PrimePenguinResponse< and press Shift + > and close the last word with >.
    • Example: Task<PagedResultDtoOfContractFileDto> will be replaced by Task<PrimePenguinResponse<PagedResultDtoOfContractFileDto>>.
  • Select ReadObjectResponseAsync< and press CTRL + SHIFT + L to select all occurences. Append PrimePenguinResponse< and press Shift + > and close the last word with >.
  • Select Ta11111sk< and press CTRL + SHIFT + L to select all occurences. Replace with Task<PrimePenguinResponse< and press Shift + > twice and close the last word with >.
  • Select Read11111ObjectResponseAsync< and press CTRL + SHIFT + L to select all occurences. Replace with ReadObjectResponseAsync<PrimePenguinResponse< and press Shift + > twice and close the last word with >.
  • Search & Replace the following with empty character:
    • , Required = Required.Default
    • , Required = Required.DisallowNull
  • Replace Task<PrimePenguinResponse<ObjectResponseResult><T>> ReadObjectResponseAsync<PrimePenguinResponse<T>> with Task<ObjectResponseResult<T>> ReadObjectResponseAsync<T>.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages