两折卖----返利app-----返利圈

GetMessageFromWXResp+responseWithTextOrMediaMessage.m 636B

1234567891011121314151617181920212223242526
  1. //
  2. // GetMessageFromWXResp+responseWithTextOrMediaMessage.m
  3. // SDKSample
  4. //
  5. // Created by Jeason on 15/7/14.
  6. //
  7. //
  8. #import "GetMessageFromWXResp+responseWithTextOrMediaMessage.h"
  9. @implementation GetMessageFromWXResp (responseWithTextOrMediaMessage)
  10. + (GetMessageFromWXResp *)responseWithText:(NSString *)text
  11. OrMediaMessage:(WXMediaMessage *)message
  12. bText:(BOOL)bText {
  13. GetMessageFromWXResp *resp = [[GetMessageFromWXResp alloc] init];
  14. resp.bText = bText;
  15. if (bText)
  16. resp.text = text;
  17. else
  18. resp.message = message;
  19. return resp;
  20. }
  21. @end