NIMKitLocationPoint.m 839 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // NIMLocationPoint.m
  3. // NIM
  4. //
  5. // Created by chris on 15/2/28.
  6. // Copyright (c) 2015年 Netease. All rights reserved.
  7. //
  8. #import "NIMKitLocationPoint.h"
  9. #import <NIMSDK/NIMSDK.h>
  10. @implementation NIMKitLocationPoint
  11. - (instancetype)initWithLocationObject:(NIMLocationObject *)locationObject{
  12. self = [super init];
  13. if (self) {
  14. CLLocationCoordinate2D coordinate;
  15. coordinate.longitude = locationObject.longitude;
  16. coordinate.latitude = locationObject.latitude;
  17. _coordinate = coordinate;
  18. _title = locationObject.title;
  19. }
  20. return self;
  21. }
  22. - (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate andTitle:(NSString *)title{
  23. self = [super init];
  24. if (self) {
  25. _coordinate = coordinate;
  26. _title = title;
  27. }
  28. return self;
  29. }
  30. @end