Class Package
Represents a complete package source tree.
Inheritance
System.Object
Package
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class Package : IEquatable<Package>
Constructors
Package(String, String, String, List<File>)
Initializes a new instance of the Package class.
Declaration
public Package(string type = null, string path = null, string package = null, List<File> files = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | Type of AST node. |
System.String | path | Package import path. |
System.String | package | Package name. |
List<File> | files | Package files. |
Properties
_Package
Package name
Declaration
public string _Package { get; set; }
Property Value
Type | Description |
---|---|
System.String | Package name |
Files
Package files
Declaration
public List<File> Files { get; set; }
Property Value
Type | Description |
---|---|
List<File> | Package files |
Path
Package import path
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System.String | Package import path |
Type
Type of AST node
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type of AST node |
Methods
Equals(Package)
Returns true if Package instances are equal
Declaration
public bool Equals(Package input)
Parameters
Type | Name | Description |
---|---|---|
Package | input | Instance of Package to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |