SessionDirectoryEntry Class
- java.
lang. Object - com.
azure. ai. agents. models. SessionDirectoryEntry
- com.
Implements
public final class SessionDirectoryEntry
implements JsonSerializable<SessionDirectoryEntry>
A single entry in a directory listing.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Session |
fromJson(JsonReader jsonReader)
Reads an instance of Session |
|
Offset |
getModifiedTime()
Get the modified |
| String |
getName()
Get the name property: The name of the file or directory. |
| long |
getSize()
Get the size property: The size in bytes (0 for directories). |
| boolean |
isDirectory()
Get the is |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static SessionDirectoryEntry fromJson(JsonReader jsonReader)
Reads an instance of SessionDirectoryEntry from the JsonReader.
Parameters:
Returns:
Throws:
getModifiedTime
public OffsetDateTime getModifiedTime()
Get the modifiedTime property: The Unix timestamp (in seconds) when the file was last modified.
Returns:
getName
public String getName()
Get the name property: The name of the file or directory.
Returns:
getSize
public long getSize()
Get the size property: The size in bytes (0 for directories).
Returns:
isDirectory
public boolean isDirectory()
Get the isDirectory property: Whether this entry is a directory.
Returns: