Class AppInformation

java.lang.Object
software.xdev.mailpit.model.AppInformation

public class AppInformation extends Object
AppInformation struct
  • Field Details

  • Constructor Details

    • AppInformation

      public AppInformation()
  • Method Details

    • database

      public AppInformation database(@Nullable String database)
    • getDatabase

      @Nullable public String getDatabase()
      Database path
      Returns:
      database
    • setDatabase

      public void setDatabase(@Nullable String database)
    • databaseSize

      public AppInformation databaseSize(@Nullable Integer databaseSize)
    • getDatabaseSize

      @Nullable public Integer getDatabaseSize()
      Database size in bytes
      Returns:
      databaseSize
    • setDatabaseSize

      public void setDatabaseSize(@Nullable Integer databaseSize)
    • latestVersion

      public AppInformation latestVersion(@Nullable String latestVersion)
    • getLatestVersion

      @Nullable public String getLatestVersion()
      Latest Mailpit version
      Returns:
      latestVersion
    • setLatestVersion

      public void setLatestVersion(@Nullable String latestVersion)
    • messages

      public AppInformation messages(@Nullable Integer messages)
    • getMessages

      @Nullable public Integer getMessages()
      Total number of messages in the database
      Returns:
      messages
    • setMessages

      public void setMessages(@Nullable Integer messages)
    • runtimeStats

      public AppInformation runtimeStats(@Nullable AppInformationRuntimeStats runtimeStats)
    • getRuntimeStats

      @Nullable public AppInformationRuntimeStats getRuntimeStats()
      Get runtimeStats
      Returns:
      runtimeStats
    • setRuntimeStats

      public void setRuntimeStats(@Nullable AppInformationRuntimeStats runtimeStats)
    • tags

      public AppInformation tags(@Nullable Map<String,Long> tags)
    • putTagsItem

      public AppInformation putTagsItem(String key, Long tagsItem)
    • getTags

      @Nullable public Map<String,Long> getTags()
      Tags and message totals per tag
      Returns:
      tags
    • setTags

      public void setTags(@Nullable Map<String,Long> tags)
    • unread

      public AppInformation unread(@Nullable Integer unread)
    • getUnread

      @Nullable public Integer getUnread()
      Total number of messages in the database
      Returns:
      unread
    • setUnread

      public void setUnread(@Nullable Integer unread)
    • version

      public AppInformation version(@Nullable String version)
    • getVersion

      @Nullable public String getVersion()
      Current Mailpit version
      Returns:
      version
    • setVersion

      public void setVersion(@Nullable String version)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string