Package com.chatmotorapi.api.models
Class MotorModel
java.lang.Object
com.chatmotorapi.api.models.MotorModel
- All Implemented Interfaces:
Comparable<MotorModel>
public class MotorModel extends Object implements Comparable<MotorModel>
Represents a model of OpenAI, encapsulating details about model identifiers,
creation time, and ownership.
-
Constructor Summary
Constructors Constructor Description MotorModel()
-
Method Summary
Modifier and Type Method Description int
compareTo(MotorModel other)
Compares this MotorUserMessage to the specified MotorUserMessage to determine equality.boolean
equals(Object obj)
Compares this MotorUserMessage to the specified object to determine equality.long
getCreated()
Returns the creation timestamp of this model.String
getId()
Returns the unique identifier of this model.String
getObject()
Returns the type or category of this model.String
getOwnedBy()
Returns the owner's identifier of this model.int
hashCode()
Computes the hash code for this MotorSystemMessage based on its message content.String
toString()
Provides a string representation of this model, including its id, object, creation time, and owner.
-
Constructor Details
-
MotorModel
public MotorModel()
-
-
Method Details
-
getId
Returns the unique identifier of this model.- Returns:
- The unique identifier of the model.
-
getObject
Returns the type or category of this model.- Returns:
- The object type or category of the model.
-
getCreated
public long getCreated()Returns the creation timestamp of this model.- Returns:
- The UNIX timestamp when the model was created.
-
getOwnedBy
Returns the owner's identifier of this model.- Returns:
- The identifier of the owner of the model.
-
hashCode
public int hashCode()Computes the hash code for this MotorSystemMessage based on its message content. -
equals
Compares this MotorUserMessage to the specified object to determine equality. Two MotorUserMessage objects are considered equal if their message texts are identical. -
compareTo
Compares this MotorUserMessage to the specified MotorUserMessage to determine equality. Two MotorUserMessage objects are considered equal if their message texts are identical.- Specified by:
compareTo
in interfaceComparable<MotorModel>
- Parameters:
other
- The MotorUserMessage to compare with this MotorUserMessage for equality.
-
toString
Provides a string representation of this model, including its id, object, creation time, and owner.
-