Package ru.bgcrm.plugin.bgbilling.proto.model.inet

# Class TrafficType

java.lang.Object
org.bgerp.model.base.Id
org.bgerp.model.base.IdTitle
ru.bgcrm.plugin.bgbilling.proto.model.inet.TrafficType

All Implemented Interfaces:
  `Serializable`, `Id<Integer>`, `IdTitle<Integer>`, `Title`

public class TrafficType extends IdTitle
Тип трафика

See Also:
  - Serialized Form

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final TrafficType`
  `TIME`
  `static final Integer`
  `TIME_ID`

  ### Fields inherited from class org.bgerp.model.base.IdTitle

  `title`

  ### Fields inherited from class org.bgerp.model.base.Id

  `id`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TrafficType()`
  `TrafficType(int id, String title, int unit)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getUnit()`
  `void`
  `setUnit(int type)`

  ### Methods inherited from class org.bgerp.model.base.IdTitle

  `getTitle, setTitle, toString, unknown`

  ### Methods inherited from class org.bgerp.model.base.Id

  `equals, getId, hashCode, setId`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface org.bgerp.model.base.iface.Id

  `getId`

- ## Field Details

  - ### TIME_ID

    public static final Integer TIME_ID

  - ### TIME

    public static final TrafficType TIME

- ## Constructor Details

  - ### TrafficType

    public TrafficType()

  - ### TrafficType

    public TrafficType(int id, String title, int unit)

- ## Method Details

  - ### getUnit

    public int getUnit()
    Returns:
    See Also:
      - `ServiceUnit`

  - ### setUnit

    public void setUnit(int type)