Show / Hide Table of Contents

Class ElectionComment

A custom tailored comment for use in elections web interface (ElectionController). Gets stored in Election.

Inheritance
System.Object
ElectionComment
Implements
System.ICloneable
IBsonSerialize
IBsonSerializable
IBsonDeserializable
Namespace: Eco.Shared.Services
Assembly: Eco.Shared.dll
Syntax
[BsonAutoSerialize]
[Serialized]
public class ElectionComment : Object, ICloneable, IBsonSerialize, IBsonSerializable, IBsonDeserializable

Constructors

ElectionComment()

Declaration
public ElectionComment()

ElectionComment(String)

Declaration
public ElectionComment(string text)
Parameters
Type Name Description
System.String text

Properties

Graph

Declaration
[Serialized]
public Graph Graph { get; set; }
Property Value
Type Description
Graph

Map

Declaration
[Serialized]
public Map Map { get; set; }
Property Value
Type Description
Map

Text

Declaration
[Serialized]
public string Text { get; set; }
Property Value
Type Description
System.String

TimeSeconds

Declaration
[Serialized]
public double TimeSeconds { get; set; }
Property Value
Type Description
System.Double

Username

Declaration
[Serialized]
public string Username { get; set; }
Property Value
Type Description
System.String

Methods

Clone()

Declaration
public object Clone()
Returns
Type Description
System.Object

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean

FromBson(BSONArray)

Declaration
public void FromBson(BSONArray bson)
Parameters
Type Name Description
BSONArray bson

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

ToBson()

Declaration
public BSONArray ToBson()
Returns
Type Description
BSONArray

Implements

System.ICloneable
IBsonSerialize
IBsonSerializable
IBsonDeserializable

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾