File tree Expand file tree Collapse file tree 6 files changed +6
-32
lines changed
Expand file tree Collapse file tree 6 files changed +6
-32
lines changed Original file line number Diff line number Diff line change 2525
2626using Anvil . Client ;
2727using Anvil . Payloads . Request . Types ;
28+ using AnvilExamples . examples ;
2829using CreateEtchPacket = Anvil . Payloads . Request . CreateEtchPacket ;
2930
3031namespace AnvilExamples ;
3132
3233class 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.
Original file line number Diff line number Diff line change 1616
1717using Anvil . Client ;
1818
19- namespace AnvilExamples ;
19+ namespace AnvilExamples . examples ;
2020
2121class 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
Original file line number Diff line number Diff line change 2121using Anvil . Payloads . Request ;
2222using Anvil . Payloads . Request . Types ;
2323
24- namespace AnvilExamples ;
24+ namespace AnvilExamples . examples ;
2525
2626class GenerateHtmlToPdf : RunnableBaseExample
2727{
28- public GenerateHtmlToPdf ( string apiKey ) : base ( apiKey )
29- {
30- }
31-
3228 private GeneratePdf GetPayload ( )
3329 {
3430 return new GeneratePdf ( )
Original file line number Diff line number Diff line change 1919using Anvil . Payloads . Request ;
2020using Anvil . Payloads . Request . Types ;
2121
22- namespace AnvilExamples ;
22+ namespace AnvilExamples . examples ;
2323
2424class GenerateMarkdownToPdf : RunnableBaseExample
2525{
26- public GenerateMarkdownToPdf ( string apiKey ) : base ( apiKey )
27- {
28- }
29-
3026 private GeneratePdf GetPayload ( )
3127 {
3228 return new GeneratePdf ( )
Original file line number Diff line number Diff line change 1616using Newtonsoft . Json ;
1717using Newtonsoft . Json . Linq ;
1818
19- namespace AnvilExamples ;
19+ namespace AnvilExamples . examples ;
2020
2121class 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}
Original file line number Diff line number Diff line change 1- namespace AnvilExamples ;
1+ namespace AnvilExamples . examples ;
22
33public interface IBaseExample
44{
@@ -7,13 +7,6 @@ public interface IBaseExample
77
88abstract 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 ( ) ;
You can’t perform that action at this time.
0 commit comments