OrganizObject.h 806 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // OrganizObject.h
  3. // shiku_im
  4. //
  5. // Created by 1 on 17/5/11.
  6. // Copyright © 2017年 Reese. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. //@class JXUserObject;
  10. @interface OrganizObject : NSObject
  11. /** 节点名 */
  12. @property (copy, nonatomic) NSString *nodeName;
  13. /** 节点Id */
  14. @property (copy, nonatomic) NSString *nodeId;
  15. /** 父节点Id */
  16. @property (copy, nonatomic) NSString * parentId;
  17. /** 类型 */
  18. @property (assign, nonatomic) int type;
  19. /** 节点为员工时有值,否则为nil */
  20. @property (copy, nonatomic) NSString *userId;
  21. /** 子节点数组 */
  22. @property (strong, nonatomic) NSArray *children;
  23. - (id)initWithDict:(NSDictionary *)nodeDict;
  24. + (id)organizObjectWithDict:(NSDictionary *)nodeDict;
  25. - (void)addChild:(id)child;
  26. - (void)removeChild:(id)child;
  27. @end