Skip to content

Commit 1481f59

Browse files
committed
Clean
1 parent 04e3a66 commit 1481f59

File tree

6 files changed

+6
-32
lines changed

6 files changed

+6
-32
lines changed

csharp/examples/CreateEtchESignPacket.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@
2525

2626
using Anvil.Client;
2727
using Anvil.Payloads.Request.Types;
28+
using AnvilExamples.examples;
2829
using CreateEtchPacket = Anvil.Payloads.Request.CreateEtchPacket;
2930

3031
namespace AnvilExamples;
3132

3233
class CreateEtchESignPacket : RunnableBaseExample
3334
{
34-
public CreateEtchESignPacket(string apiKey) : base(apiKey)
35-
{
36-
}
37-
3835
private string GetFileB64Bytes(string filePath)
3936
{
4037
// Convert the file bytes in into a base64 encoded string.

csharp/examples/FillPdf.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
using Anvil.Client;
1818

19-
namespace AnvilExamples;
19+
namespace AnvilExamples.examples;
2020

2121
class FillPDF : RunnableBaseExample
2222
{
@@ -80,10 +80,6 @@ private Anvil.Payloads.Request.FillPdf GetFillData()
8080
};
8181
}
8282

83-
public FillPDF(string apiKey) : base(apiKey)
84-
{
85-
}
86-
8783
public override async Task Run(string apiKey)
8884
{
8985
// The PDF template ID to fill. This PDF template ID is a sample template

csharp/examples/GenerateHtmlToPdf.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@
2121
using Anvil.Payloads.Request;
2222
using Anvil.Payloads.Request.Types;
2323

24-
namespace AnvilExamples;
24+
namespace AnvilExamples.examples;
2525

2626
class GenerateHtmlToPdf : RunnableBaseExample
2727
{
28-
public GenerateHtmlToPdf(string apiKey) : base(apiKey)
29-
{
30-
}
31-
3228
private GeneratePdf GetPayload()
3329
{
3430
return new GeneratePdf()

csharp/examples/GenerateMarkdownToPdf.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@
1919
using Anvil.Payloads.Request;
2020
using Anvil.Payloads.Request.Types;
2121

22-
namespace AnvilExamples;
22+
namespace AnvilExamples.examples;
2323

2424
class GenerateMarkdownToPdf : RunnableBaseExample
2525
{
26-
public GenerateMarkdownToPdf(string apiKey) : base(apiKey)
27-
{
28-
}
29-
3026
private GeneratePdf GetPayload()
3127
{
3228
return new GeneratePdf()

csharp/examples/MakeGraphqlRequest.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using Newtonsoft.Json;
1717
using Newtonsoft.Json.Linq;
1818

19-
namespace AnvilExamples;
19+
namespace AnvilExamples.examples;
2020

2121
class MakeGraphqlRequest : RunnableBaseExample
2222
{
@@ -82,8 +82,4 @@ public override async Task Run(string apiKey)
8282
var weldResponse = await CallWeldQuery(client, (string) firstWeld["eid"]);
8383
Console.WriteLine("First weld details:\n" + weldResponse);
8484
}
85-
86-
public MakeGraphqlRequest(string apiKey) : base(apiKey)
87-
{
88-
}
8985
}

csharp/examples/RunnableBaseExample.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AnvilExamples;
1+
namespace AnvilExamples.examples;
22

33
public interface IBaseExample
44
{
@@ -7,13 +7,6 @@ public interface IBaseExample
77

88
abstract class RunnableBaseExample : IBaseExample
99
{
10-
protected string _apiKey;
11-
12-
public RunnableBaseExample(string apiKey)
13-
{
14-
_apiKey = apiKey;
15-
}
16-
1710
public virtual Task Run(string apiKey)
1811
{
1912
throw new NotImplementedException();

0 commit comments

Comments
 (0)