Skip to content

Commit 94b96a6

Browse files
committed
Hotfix 0.1.1
1 parent 710b592 commit 94b96a6

7 files changed

Lines changed: 34 additions & 3 deletions

File tree

Assets/swiftlet_examples.gh

29.1 KB
Binary file not shown.

Swiftlet/Components/2_Request/CreateTextBody.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Windows.Forms;
4+
using GH_IO.Serialization;
45
using Grasshopper.Kernel;
56
using Rhino.Geometry;
67
using Swiftlet.DataModels.Enums;
@@ -33,6 +34,34 @@ public CreateTextBody()
3334
this.IsJsonChecked = true;
3435
}
3536

37+
public override bool Read(GH_IReader reader)
38+
{
39+
this.IsTextChecked = reader.GetBoolean(nameof(this.IsTextChecked));
40+
this.IsJavascriptChecked = reader.GetBoolean(nameof(this.IsJavascriptChecked));
41+
this.IsJsonChecked = reader.GetBoolean(nameof(this.IsJsonChecked));
42+
this.IsHtmlChecked = reader.GetBoolean(nameof(this.IsHtmlChecked));
43+
this.IsXmlChecked = reader.GetBoolean(nameof(this.IsXmlChecked));
44+
45+
if (this.IsTextChecked) _cType = ContentType.Text;
46+
else if (this.IsJavascriptChecked) _cType = ContentType.JavaScript;
47+
else if (this.IsJsonChecked) _cType = ContentType.JSON;
48+
else if (this.IsHtmlChecked) _cType = ContentType.HTML;
49+
else if (this.IsXmlChecked) _cType = ContentType.XML;
50+
51+
this.Message = this._cType.ToString();
52+
return base.Read(reader);
53+
}
54+
55+
public override bool Write(GH_IWriter writer)
56+
{
57+
writer.SetBoolean(nameof(this.IsTextChecked), this.IsTextChecked);
58+
writer.SetBoolean(nameof(this.IsJavascriptChecked), this.IsJavascriptChecked);
59+
writer.SetBoolean(nameof(this.IsJsonChecked), this.IsJsonChecked);
60+
writer.SetBoolean(nameof(this.IsHtmlChecked), this.IsHtmlChecked);
61+
writer.SetBoolean(nameof(this.IsXmlChecked), this.IsXmlChecked);
62+
return base.Write(writer);
63+
}
64+
3665
/// <summary>
3766
/// Registers all the input parameters for this component.
3867
/// </summary>

Swiftlet/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.1.0.0")]
36-
[assembly: AssemblyFileVersion("0.1.0.0")]
35+
[assembly: AssemblyVersion("0.1.1.0")]
36+
[assembly: AssemblyFileVersion("0.1.1.0")]

Yak/dist-0.1.1/Swiftlet.gha

73.5 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: swiftlet
2-
version: 0.1.0
2+
version: 0.1.1
33
authors:
44
- Sergey Pigach
55
description: >
@@ -19,4 +19,6 @@ keywords:
1919
- scraping
2020
- endpoint
2121
- headers
22+
- http
23+
- https
2224
icon_url: "https://swiftlet.s3.us-east-2.amazonaws.com/Logo_32x32.png"
37 KB
Binary file not shown.
37 KB
Binary file not shown.

0 commit comments

Comments
 (0)