ISEResultReadSyllable.m 871 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // ISEResultReadSyllable.m
  3. // IFlyMSCDemo
  4. //
  5. // Created by 张剑 on 15/3/7.
  6. //
  7. //
  8. #import "ISEResultReadSyllable.h"
  9. #import "ISEResultTools.h"
  10. @implementation ISEResultReadSyllable
  11. -(instancetype)init{
  12. if(self=[super init]){
  13. self.category = @"read_syllable";
  14. self.language = @"cn";
  15. }
  16. return self;
  17. }
  18. -(NSString*) toString{
  19. NSString* buffer = [[NSString alloc] init];
  20. buffer=[buffer stringByAppendingFormat:@"[ISE Results]\n"];
  21. buffer=[buffer stringByAppendingFormat:@"Content:%@\n" ,self.content];
  22. buffer=[buffer stringByAppendingFormat:@"Duration:%d\n",self.time_len];
  23. buffer=[buffer stringByAppendingFormat:@"Total Score:%f\n",self.total_score];
  24. buffer=[buffer stringByAppendingFormat:@"[Read Details]:%@\n",[ISEResultTools formatDetailsForLanguageCN:self.sentences]];
  25. return buffer;
  26. }
  27. @end