content: package com.alphawallet.app.repository.entity;
  
  import io.realm.RealmObject;
  import io.realm.annotations.PrimaryKey;
  
  public class RealmTokenTicker extends RealmObject {
      @PrimaryKey
      private String contract;
      private String price;
      private String percentChange24h;
      private long createdTime;
      private String id;
      private String image;
      private long updatedTime;
      private String currencySymbol;
  
      public String getId() {
          return id;
      }
  
      public void setId(String id) {
          this.id = id;
      }
  
      public String getContract()
      {
          return contract.split("-")[0];
      }
  
      public long getChain()
      {
          return Long.parseLong(contract.split("-")[1]);
      }
  
      public String getPrice() {
          return price;
      }
  
      public void setPrice(String price) {
          this.price = price;
      }
  
      public String getPercentChange24h() {
          return percentChange24h;
      }
  
      public void setPercentChange24h(String percentChange24h) {
          this.percentChange24h = percentChange24h;
      }
  
      public long getCreatedTime() {
          return createdTime;
      }
  
      public void setCreatedTime(long createdTime) {
          this.createdTime = createdTime;
      }
  
      public String getImage() {
          return image;
      }
  
      public void setImage(String image) {
          this.image = image;
      }
  
      public long getUpdatedTime() {
          return updatedTime;
      }
  
      public void setUpdatedTime(long updatedTime) {
          this.updatedTime = updatedTime;
      }
  
      public String getCurrencySymbol()
      {
          return currencySymbol;
      }
  
      public void setCurrencySymbol(String currencySymbol)
      {
          this.currencySymbol = currencySymbol;
      }
  }
  