Module tdlight.api

Class TdApi.BusinessOpeningHours

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.BusinessOpeningHours
Enclosing class:
TdApi

public static final class TdApi.BusinessOpeningHours extends TdApi.Object
Describes opening hours of a business.
  • Field Details

    • timeZoneId

      public String timeZoneId
      Unique time zone identifier.
    • openingHours

      public TdApi.BusinessOpeningHoursInterval[] openingHours
      Intervals of the time when the business is open.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • BusinessOpeningHours

      public BusinessOpeningHours()
      Describes opening hours of a business.
    • BusinessOpeningHours

      public BusinessOpeningHours(String timeZoneId, TdApi.BusinessOpeningHoursInterval[] openingHours)
      Describes opening hours of a business.
      Parameters:
      timeZoneId - Unique time zone identifier.
      openingHours - Intervals of the time when the business is open.
    • BusinessOpeningHours

      public BusinessOpeningHours(DataInput input) throws IOException
      Describes opening hours of a business.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object