コード例 #1
0
 static <
         RequestType extends ConversationsSubmissionRequest,
         ResponseType extends ConversationsResponse>
     LoadCall<RequestType, ResponseType> reCreateCallNoPreview(
         Class<ResponseType> responseTypeClass, RequestType submission) {
   submission.setForcePreview(false);
   return loadCallFromSubmission(responseTypeClass, submission);
 }
コード例 #2
0
 private static <
         RequestType extends ConversationsSubmissionRequest,
         ResponseType extends ConversationsResponse>
     LoadCallSubmission<RequestType, ResponseType> createCall(
         Class<ResponseType> responseTypeClass, RequestType submission) {
   if (submission.getBuilder().getAction() == Action.Submit) {
     submission.setForcePreview(true);
   }
   return loadCallFromSubmission(responseTypeClass, submission);
 }
コード例 #3
0
  static <
          RequestType extends ConversationsSubmissionRequest,
          ResponseType extends ConversationsResponse>
      LoadCall<RequestType, ResponseType> reCreateCallWithPhotos(
          Class<ResponseType> responseTypeClass, RequestType submission, List<Photo> photos) {
    submission.setPhotos(photos);
    submission.getBuilder().photoUploads.clear();
    submission.setForcePreview(false);

    LoadCall loadCall = loadCallFromSubmission(responseTypeClass, submission);
    return loadCall;
  }