Michele Albano 96c1bda608 C additional properties fix #4289 (#4349)
* Correction to C support for additional_properties

* TAB to SPACE in one file
2019-11-27 17:15:47 +08:00

48 lines
801 B
C

/*
* user.h
*
* A User who is purchasing from the pet store
*/
#ifndef _user_H_
#define _user_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
typedef struct user_t {
long id; //numeric
char *username; // string
char *firstName; // string
char *lastName; // string
char *email; // string
char *password; // string
char *phone; // string
int userStatus; //numeric
} user_t;
user_t *user_create(
long id,
char *username,
char *firstName,
char *lastName,
char *email,
char *password,
char *phone,
int userStatus
);
void user_free(user_t *user);
user_t *user_parseFromJSON(cJSON *userJSON);
cJSON *user_convertToJSON(user_t *user);
#endif /* _user_H_ */