Class ChallengeParts

  • All Implemented Interfaces:
    android.os.Parcelable

    public class ChallengeParts
    extends com.cheetahdigital.corekit.rest.params.BaseParams
    Class for setting the parts parameters of Challenges API All Nullable parameters means you can remove the parameter by passing a null value.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ChallengeParts.Builder  
      • Nested classes/interfaces inherited from class com.cheetahdigital.corekit.rest.params.BaseParams

        com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder<T extends com.cheetahdigital.corekit.rest.params.BaseParams,​B extends com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder>
      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      • Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams

        CREATOR, mId, mQueryMap
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      ChallengeParts()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAnswer()
      Returns the answer text
      okhttp3.MultipartBody.Part getAttachment()
      Returns the file attachment
      void setAnswer​(java.lang.String answer)
      Set the answer text
      void setAttachment​(com.cheetahdigital.uikit.helper.video.MediaFile attachment)
      Set the file attachment
      • Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams

        addParam, describeContents, getAccessToken, getId, getParam, getQueryMap, setAccessToken, setId, writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChallengeParts

        public ChallengeParts()
    • Method Detail

      • setAnswer

        public void setAnswer​(java.lang.String answer)
        Set the answer text
        Parameters:
        answer - text
      • getAnswer

        public java.lang.String getAnswer()
        Returns the answer text
        Returns:
        answer text
      • getAttachment

        public okhttp3.MultipartBody.Part getAttachment()
        Returns the file attachment
        Returns:
        file attachment
      • setAttachment

        public void setAttachment​(com.cheetahdigital.uikit.helper.video.MediaFile attachment)
        Set the file attachment
        Parameters:
        attachment - file to be uploaded