Enum Class EOS_ENetworkStatus

java.lang.Object
java.lang.Enum<EOS_ENetworkStatus>
host.anzo.eossdk.eos.sdk.common.enums.EOS_ENetworkStatus
All Implemented Interfaces:
com.sun.jna.NativeMapped, Serializable, Comparable<EOS_ENetworkStatus>, Constable

public enum EOS_ENetworkStatus extends Enum<EOS_ENetworkStatus> implements com.sun.jna.NativeMapped
All possible states of the network
Since:
8/5/2023
  • Enum Constant Details

    • EOS_NS_Disabled

      public static final EOS_ENetworkStatus EOS_NS_Disabled
      Networking unavailable.
    • EOS_NS_Offline

      public static final EOS_ENetworkStatus EOS_NS_Offline
      Not connected to the internet. Only local area networking (LAN) may be available.
    • EOS_NS_Online

      public static final EOS_ENetworkStatus EOS_NS_Online
      Connected to the internet.
  • Method Details

    • values

      public static EOS_ENetworkStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EOS_ENetworkStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromNative

      public Object fromNative(Object nativeValue, com.sun.jna.FromNativeContext context)
      Specified by:
      fromNative in interface com.sun.jna.NativeMapped
    • toNative

      public Object toNative()
      Specified by:
      toNative in interface com.sun.jna.NativeMapped
    • nativeType

      public Class<?> nativeType()
      Specified by:
      nativeType in interface com.sun.jna.NativeMapped
    • toString

      public String toString()
      Gets the string representation of an EOS_ENetworkStatus value.

      Example: EOS_ENetworkStatus_ToString(EOS_ENetworkStatus::EOS_NS_Online) returns "EOS_NS_Online".

      Overrides:
      toString in class Enum<EOS_ENetworkStatus>
      Returns:
      Pointer to a static string representing the input enum value. The returned string is guaranteed to be non-null, and must not be freed by the application.