add apple tv app
This commit is contained in:
230
iphone/Werkout_ios/JSON/AllMuscles.json
Normal file
230
iphone/Werkout_ios/JSON/AllMuscles.json
Normal file
@@ -0,0 +1,230 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"created_at": "2023-06-13T01:58:13.212264Z",
|
||||
"updated_at": "2023-06-13T01:58:13.212311Z",
|
||||
"name": "deltoids"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"created_at": "2023-06-13T01:58:13.214487Z",
|
||||
"updated_at": "2023-06-13T01:58:13.214520Z",
|
||||
"name": "core"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"created_at": "2023-06-13T01:58:13.215255Z",
|
||||
"updated_at": "2023-06-13T01:58:13.215277Z",
|
||||
"name": "obliques"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"created_at": "2023-06-13T01:58:13.216495Z",
|
||||
"updated_at": "2023-06-13T01:58:13.216522Z",
|
||||
"name": "glutes"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"created_at": "2023-06-13T01:58:13.217347Z",
|
||||
"updated_at": "2023-06-13T01:58:13.217371Z",
|
||||
"name": "quads"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"created_at": "2023-06-13T01:58:13.218407Z",
|
||||
"updated_at": "2023-06-13T01:58:13.218434Z",
|
||||
"name": "hamstrings"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"created_at": "2023-06-13T01:58:13.219494Z",
|
||||
"updated_at": "2023-06-13T01:58:13.219521Z",
|
||||
"name": "hip abductors"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"created_at": "2023-06-13T01:58:13.220702Z",
|
||||
"updated_at": "2023-06-13T01:58:13.220737Z",
|
||||
"name": "triceps"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"created_at": "2023-06-13T01:58:13.221543Z",
|
||||
"updated_at": "2023-06-13T01:58:13.221564Z",
|
||||
"name": "upper back"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"created_at": "2023-06-13T01:58:13.222148Z",
|
||||
"updated_at": "2023-06-13T01:58:13.222166Z",
|
||||
"name": "lats"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"created_at": "2023-06-13T01:58:13.222710Z",
|
||||
"updated_at": "2023-06-13T01:58:13.222729Z",
|
||||
"name": ""
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"created_at": "2023-06-13T01:58:13.223248Z",
|
||||
"updated_at": "2023-06-13T01:58:13.223267Z",
|
||||
"name": "Abs"
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"created_at": "2023-06-13T01:58:13.223787Z",
|
||||
"updated_at": "2023-06-13T01:58:13.223805Z",
|
||||
"name": "middle back"
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"created_at": "2023-06-13T01:58:13.224313Z",
|
||||
"updated_at": "2023-06-13T01:58:13.224330Z",
|
||||
"name": "biceps"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"created_at": "2023-06-13T01:58:13.224843Z",
|
||||
"updated_at": "2023-06-13T01:58:13.224860Z",
|
||||
"name": "rotator cuff"
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"created_at": "2023-06-13T01:58:13.225377Z",
|
||||
"updated_at": "2023-06-13T01:58:13.225394Z",
|
||||
"name": "hip flexor"
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"created_at": "2023-06-13T01:58:13.226340Z",
|
||||
"updated_at": "2023-06-13T01:58:13.226370Z",
|
||||
"name": "Quads"
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"created_at": "2023-06-13T01:58:13.227071Z",
|
||||
"updated_at": "2023-06-13T01:58:13.227094Z",
|
||||
"name": "Glutes"
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"created_at": "2023-06-13T01:58:13.227668Z",
|
||||
"updated_at": "2023-06-13T01:58:13.227687Z",
|
||||
"name": "lower back"
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"created_at": "2023-06-13T01:58:13.228176Z",
|
||||
"updated_at": "2023-06-13T01:58:13.228193Z",
|
||||
"name": "chest"
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"created_at": "2023-06-13T01:58:13.228647Z",
|
||||
"updated_at": "2023-06-13T01:58:13.228663Z",
|
||||
"name": "Shoulders"
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"created_at": "2023-06-13T01:58:13.229110Z",
|
||||
"updated_at": "2023-06-13T01:58:13.229126Z",
|
||||
"name": "calves"
|
||||
},
|
||||
{
|
||||
"id": 23,
|
||||
"created_at": "2023-06-13T01:58:13.229566Z",
|
||||
"updated_at": "2023-06-13T01:58:13.229581Z",
|
||||
"name": "Obliques"
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"created_at": "2023-06-13T01:58:13.230014Z",
|
||||
"updated_at": "2023-06-13T01:58:13.230031Z",
|
||||
"name": "Hip Flexor"
|
||||
},
|
||||
{
|
||||
"id": 25,
|
||||
"created_at": "2023-06-13T01:58:13.230457Z",
|
||||
"updated_at": "2023-06-13T01:58:13.230472Z",
|
||||
"name": "Middle Back"
|
||||
},
|
||||
{
|
||||
"id": 26,
|
||||
"created_at": "2023-06-13T01:58:13.230905Z",
|
||||
"updated_at": "2023-06-13T01:58:13.230919Z",
|
||||
"name": "Lats"
|
||||
},
|
||||
{
|
||||
"id": 27,
|
||||
"created_at": "2023-06-13T01:58:13.231350Z",
|
||||
"updated_at": "2023-06-13T01:58:13.231364Z",
|
||||
"name": "hip adductors"
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"created_at": "2023-06-13T01:58:13.231849Z",
|
||||
"updated_at": "2023-06-13T01:58:13.231864Z",
|
||||
"name": "traps"
|
||||
},
|
||||
{
|
||||
"id": 29,
|
||||
"created_at": "2023-06-13T01:58:13.232295Z",
|
||||
"updated_at": "2023-06-13T01:58:13.232310Z",
|
||||
"name": "forearms"
|
||||
},
|
||||
{
|
||||
"id": 30,
|
||||
"created_at": "2023-06-13T01:58:13.232733Z",
|
||||
"updated_at": "2023-06-13T01:58:13.232748Z",
|
||||
"name": "abs"
|
||||
},
|
||||
{
|
||||
"id": 31,
|
||||
"created_at": "2023-06-13T01:58:13.233175Z",
|
||||
"updated_at": "2023-06-13T01:58:13.233192Z",
|
||||
"name": "Biceps"
|
||||
},
|
||||
{
|
||||
"id": 32,
|
||||
"created_at": "2023-06-13T01:58:13.233616Z",
|
||||
"updated_at": "2023-06-13T01:58:13.233631Z",
|
||||
"name": "Triceps"
|
||||
},
|
||||
{
|
||||
"id": 33,
|
||||
"created_at": "2023-06-13T01:58:13.234054Z",
|
||||
"updated_at": "2023-06-13T01:58:13.234068Z",
|
||||
"name": "Core"
|
||||
},
|
||||
{
|
||||
"id": 34,
|
||||
"created_at": "2023-06-13T01:58:13.234489Z",
|
||||
"updated_at": "2023-06-13T01:58:13.234503Z",
|
||||
"name": "intercostals"
|
||||
},
|
||||
{
|
||||
"id": 35,
|
||||
"created_at": "2023-06-13T01:58:13.234927Z",
|
||||
"updated_at": "2023-06-13T01:58:13.234941Z",
|
||||
"name": "Chest"
|
||||
},
|
||||
{
|
||||
"id": 36,
|
||||
"created_at": "2023-06-13T01:58:13.235368Z",
|
||||
"updated_at": "2023-06-13T01:58:13.235383Z",
|
||||
"name": "feet"
|
||||
},
|
||||
{
|
||||
"id": 37,
|
||||
"created_at": "2023-06-13T01:58:13.236126Z",
|
||||
"updated_at": "2023-06-13T01:58:13.236153Z",
|
||||
"name": "arms"
|
||||
},
|
||||
{
|
||||
"id": 38,
|
||||
"created_at": "2023-06-13T01:58:13.236718Z",
|
||||
"updated_at": "2023-06-13T01:58:13.236734Z",
|
||||
"name": "it band"
|
||||
}
|
||||
]
|
||||
436
iphone/Werkout_ios/JSON/AllWorkouts.json
Normal file
436
iphone/Werkout_ios/JSON/AllWorkouts.json
Normal file
@@ -0,0 +1,436 @@
|
||||
[
|
||||
{
|
||||
"id": 3,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"quads",
|
||||
"lats",
|
||||
"lower back",
|
||||
"upper back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Rower"
|
||||
],
|
||||
"exercise_count": 14,
|
||||
"created_at": "2023-07-03T17:00:01.350058Z",
|
||||
"updated_at": "2023-07-04T16:51:07.231366Z",
|
||||
"name": "Rowwwwwwer",
|
||||
"description": "row until you pass out"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"quads",
|
||||
"lats",
|
||||
"lower back",
|
||||
"upper back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Rower"
|
||||
],
|
||||
"exercise_count": 30,
|
||||
"created_at": "2023-07-04T17:36:56.902038Z",
|
||||
"updated_at": "2023-07-04T18:02:18.798549Z",
|
||||
"name": "Row 2",
|
||||
"description": "Let’s pass out"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"calves",
|
||||
"quads",
|
||||
"core",
|
||||
"hip flexor",
|
||||
"lats",
|
||||
"lower back",
|
||||
"upper back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Rower",
|
||||
"Yoga Mat"
|
||||
],
|
||||
"exercise_count": 60,
|
||||
"created_at": "2023-07-05T16:16:57.374041Z",
|
||||
"updated_at": "2023-07-05T16:16:57.378248Z",
|
||||
"name": "Cardio Mix",
|
||||
"description": "Mix of cardio stuff"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"calves",
|
||||
"hamstrings",
|
||||
"glutes",
|
||||
"core",
|
||||
"quads",
|
||||
"hip flexor",
|
||||
"middle back",
|
||||
"lats",
|
||||
"lower back",
|
||||
"upper back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Rower",
|
||||
"Yoga Mat"
|
||||
],
|
||||
"exercise_count": 56,
|
||||
"created_at": "2023-07-05T17:15:16.596202Z",
|
||||
"updated_at": "2023-07-05T17:15:16.597621Z",
|
||||
"name": "Cardio mix #2",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"glutes",
|
||||
"quads",
|
||||
"core",
|
||||
"triceps",
|
||||
"deltoids",
|
||||
"hip flexor",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Bike",
|
||||
"Battle Ropes"
|
||||
],
|
||||
"exercise_count": 24,
|
||||
"created_at": "2023-07-06T14:47:57.669190Z",
|
||||
"updated_at": "2023-07-06T14:47:57.673138Z",
|
||||
"name": "HiiT #1",
|
||||
"description": "Upper body tabata"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"glutes",
|
||||
"quads",
|
||||
"feet"
|
||||
],
|
||||
"equipment": [],
|
||||
"exercise_count": 24,
|
||||
"created_at": "2023-07-06T14:49:24.336730Z",
|
||||
"updated_at": "2023-07-06T14:49:24.338220Z",
|
||||
"name": "HiiT #2",
|
||||
"description": "Lower body tabata"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"rotator cuff",
|
||||
"chest",
|
||||
"core",
|
||||
"hamstrings",
|
||||
"glutes",
|
||||
"triceps",
|
||||
"quads",
|
||||
"abs",
|
||||
"middle back",
|
||||
"forearms",
|
||||
"lats",
|
||||
"hip abductors",
|
||||
"upper back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Pull-Up Bar",
|
||||
"Kettlebell"
|
||||
],
|
||||
"exercise_count": 20,
|
||||
"created_at": "2023-07-06T14:51:00.277200Z",
|
||||
"updated_at": "2023-07-06T14:51:00.278874Z",
|
||||
"name": "HiiT #3",
|
||||
"description": "Total body"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"chest",
|
||||
"biceps",
|
||||
"forearms",
|
||||
"triceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Dumbbell",
|
||||
"Barbell",
|
||||
"Plates",
|
||||
"Bench"
|
||||
],
|
||||
"exercise_count": 24,
|
||||
"created_at": "2023-07-06T14:56:03.908583Z",
|
||||
"updated_at": "2023-07-06T14:56:03.910350Z",
|
||||
"name": "Arms and HiiT",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"hamstrings",
|
||||
"traps",
|
||||
"core",
|
||||
"quads",
|
||||
"glutes",
|
||||
"middle back",
|
||||
"forearms",
|
||||
"lats",
|
||||
"lower back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Dumbbell",
|
||||
"Barbell",
|
||||
"Plates"
|
||||
],
|
||||
"exercise_count": 21,
|
||||
"created_at": "2023-07-06T15:00:42.677119Z",
|
||||
"updated_at": "2023-07-06T15:00:42.678641Z",
|
||||
"name": "Upper Pull",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"core",
|
||||
"middle back",
|
||||
"forearms",
|
||||
"lats",
|
||||
"upper back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Barbell",
|
||||
"Dumbbell",
|
||||
"Plates",
|
||||
"Chest Supported Row Machine",
|
||||
"Bench"
|
||||
],
|
||||
"exercise_count": 32,
|
||||
"created_at": "2023-07-06T15:06:57.002749Z",
|
||||
"updated_at": "2023-07-06T15:06:57.004148Z",
|
||||
"name": "Upper Pull",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"deltoids",
|
||||
"chest",
|
||||
"core",
|
||||
"triceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Dumbbell",
|
||||
"Barbell",
|
||||
"Box",
|
||||
"Bench"
|
||||
],
|
||||
"exercise_count": 29,
|
||||
"created_at": "2023-07-06T15:11:52.085325Z",
|
||||
"updated_at": "2023-07-06T15:11:52.086738Z",
|
||||
"name": "Upper push",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"rotator cuff",
|
||||
"chest",
|
||||
"core",
|
||||
"traps",
|
||||
"quads",
|
||||
"triceps",
|
||||
"deltoids",
|
||||
"abs",
|
||||
"hamstrings",
|
||||
"glutes",
|
||||
"upper back"
|
||||
],
|
||||
"equipment": [
|
||||
"Barbell",
|
||||
"Dumbbell",
|
||||
"Plates",
|
||||
"Bench",
|
||||
"Seated Chest Press Machine"
|
||||
],
|
||||
"exercise_count": 31,
|
||||
"created_at": "2023-07-06T15:23:51.228664Z",
|
||||
"updated_at": "2023-07-06T15:23:51.230103Z",
|
||||
"name": "Upper push",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"glutes",
|
||||
"hamstrings",
|
||||
"quads",
|
||||
"feet",
|
||||
"hip flexor",
|
||||
"hip abductors"
|
||||
],
|
||||
"equipment": [
|
||||
"Barbell",
|
||||
"Dumbbell",
|
||||
"Box",
|
||||
"Bench",
|
||||
"Bike"
|
||||
],
|
||||
"exercise_count": 33,
|
||||
"created_at": "2023-07-06T15:39:08.326899Z",
|
||||
"updated_at": "2023-07-06T17:53:45.996684Z",
|
||||
"name": "Lower #1",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"glutes",
|
||||
"quads",
|
||||
"feet",
|
||||
"upper back"
|
||||
],
|
||||
"equipment": [
|
||||
"Dumbbell",
|
||||
"Barbell",
|
||||
"Bench"
|
||||
],
|
||||
"exercise_count": 33,
|
||||
"created_at": "2023-07-06T18:20:27.100936Z",
|
||||
"updated_at": "2023-07-06T18:20:27.102968Z",
|
||||
"name": "Lower 2",
|
||||
"description": "3"
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"rotator cuff",
|
||||
"chest",
|
||||
"core",
|
||||
"hamstrings",
|
||||
"glutes",
|
||||
"triceps",
|
||||
"quads",
|
||||
"abs",
|
||||
"deltoids",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Bench",
|
||||
"Kettlebell",
|
||||
"Battle Ropes"
|
||||
],
|
||||
"exercise_count": 50,
|
||||
"created_at": "2023-07-07T17:18:47.385158Z",
|
||||
"updated_at": "2023-07-07T17:18:47.387277Z",
|
||||
"name": "Cardio",
|
||||
"description": "Ropes, bw squat, kb swings, push up"
|
||||
}
|
||||
]
|
||||
158
iphone/Werkout_ios/JSON/CompletedWorkouts.json
Normal file
158
iphone/Werkout_ios/JSON/CompletedWorkouts.json
Normal file
@@ -0,0 +1,158 @@
|
||||
[
|
||||
{
|
||||
"id": 4,
|
||||
"workout": {
|
||||
"id": 3,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"quads",
|
||||
"lats",
|
||||
"lower back",
|
||||
"upper back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Rower"
|
||||
],
|
||||
"exercise_count": 14,
|
||||
"created_at": "2023-07-03T17:00:01.350058Z",
|
||||
"updated_at": "2023-07-04T16:51:07.231366Z",
|
||||
"name": "Rowwwwwwer",
|
||||
"description": "row until you pass out"
|
||||
},
|
||||
"created_at": "2023-07-03T18:05:58.978336Z",
|
||||
"updated_at": "2023-07-03T18:05:58.985053Z",
|
||||
"difficulty": 3,
|
||||
"total_time": 529,
|
||||
"workout_start_time": "2023-07-03T17:57:01Z",
|
||||
"notes": "",
|
||||
"total_calories": -1.0
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"workout": {
|
||||
"id": 7,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"calves",
|
||||
"hamstrings",
|
||||
"glutes",
|
||||
"core",
|
||||
"quads",
|
||||
"hip flexor",
|
||||
"middle back",
|
||||
"lats",
|
||||
"lower back",
|
||||
"upper back",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Rower",
|
||||
"Yoga Mat"
|
||||
],
|
||||
"exercise_count": 56,
|
||||
"created_at": "2023-07-05T17:15:16.596202Z",
|
||||
"updated_at": "2023-07-05T17:15:16.597621Z",
|
||||
"name": "Cardio mix #2",
|
||||
"description": ""
|
||||
},
|
||||
"created_at": "2023-07-05T18:00:26.462986Z",
|
||||
"updated_at": "2023-07-05T18:00:26.465537Z",
|
||||
"difficulty": 1,
|
||||
"total_time": 1145,
|
||||
"workout_start_time": "2023-07-05T17:41:05Z",
|
||||
"notes": "",
|
||||
"total_calories": -1.0
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"workout": {
|
||||
"id": 21,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"rotator cuff",
|
||||
"chest",
|
||||
"core",
|
||||
"hamstrings",
|
||||
"glutes",
|
||||
"triceps",
|
||||
"quads",
|
||||
"abs",
|
||||
"deltoids",
|
||||
"biceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Bench",
|
||||
"Kettlebell",
|
||||
"Battle Ropes"
|
||||
],
|
||||
"exercise_count": 50,
|
||||
"created_at": "2023-07-07T17:18:47.385158Z",
|
||||
"updated_at": "2023-07-07T17:18:47.387277Z",
|
||||
"name": "Cardio",
|
||||
"description": "Ropes, bw squat, kb swings, push up"
|
||||
},
|
||||
"created_at": "2023-07-07T17:53:34.629016Z",
|
||||
"updated_at": "2023-07-07T17:53:34.631101Z",
|
||||
"difficulty": 4,
|
||||
"total_time": 1688,
|
||||
"workout_start_time": "2023-07-07T17:25:19Z",
|
||||
"notes": "",
|
||||
"total_calories": -1.0
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"workout": {
|
||||
"id": 11,
|
||||
"registered_user": {
|
||||
"id": 1,
|
||||
"first_name": "User1",
|
||||
"last_name": "user1",
|
||||
"image": "",
|
||||
"nick_name": "test user1"
|
||||
},
|
||||
"muscles": [
|
||||
"chest",
|
||||
"biceps",
|
||||
"forearms",
|
||||
"triceps"
|
||||
],
|
||||
"equipment": [
|
||||
"Dumbbell",
|
||||
"Barbell",
|
||||
"Plates",
|
||||
"Bench"
|
||||
],
|
||||
"exercise_count": 24,
|
||||
"created_at": "2023-07-06T14:56:03.908583Z",
|
||||
"updated_at": "2023-07-06T14:56:03.910350Z",
|
||||
"name": "Arms and HiiT",
|
||||
"description": ""
|
||||
},
|
||||
"created_at": "2023-07-10T19:50:36.188887Z",
|
||||
"updated_at": "2023-07-10T19:50:36.192789Z",
|
||||
"difficulty": 2,
|
||||
"total_time": 1937,
|
||||
"workout_start_time": "2023-07-10T19:18:12Z",
|
||||
"notes": "",
|
||||
"total_calories": 176.9303436279297
|
||||
}
|
||||
]
|
||||
418
iphone/Werkout_ios/JSON/Equipment.json
Normal file
418
iphone/Werkout_ios/JSON/Equipment.json
Normal file
@@ -0,0 +1,418 @@
|
||||
[
|
||||
{
|
||||
"id": 1088,
|
||||
"created_at": "2023-06-11T23:00:16.734003Z",
|
||||
"updated_at": "2023-06-11T23:00:16.734088Z",
|
||||
"is_weight": true,
|
||||
"category": "Weights",
|
||||
"name": "Kettlebell"
|
||||
},
|
||||
{
|
||||
"id": 1089,
|
||||
"created_at": "2023-06-11T23:00:16.736417Z",
|
||||
"updated_at": "2023-06-11T23:00:16.736445Z",
|
||||
"is_weight": false,
|
||||
"category": "Surfaces",
|
||||
"name": "Yoga Mat"
|
||||
},
|
||||
{
|
||||
"id": 1090,
|
||||
"created_at": "2023-06-11T23:00:16.737296Z",
|
||||
"updated_at": "2023-06-11T23:00:16.737319Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Suspension Trainer"
|
||||
},
|
||||
{
|
||||
"id": 1091,
|
||||
"created_at": "2023-06-11T23:00:16.738300Z",
|
||||
"updated_at": "2023-06-11T23:00:16.738326Z",
|
||||
"is_weight": true,
|
||||
"category": "Weights",
|
||||
"name": "Dumbbell"
|
||||
},
|
||||
{
|
||||
"id": 1092,
|
||||
"created_at": "2023-06-11T23:00:16.739434Z",
|
||||
"updated_at": "2023-06-11T23:00:16.739463Z",
|
||||
"is_weight": false,
|
||||
"category": "Surfaces",
|
||||
"name": "Box"
|
||||
},
|
||||
{
|
||||
"id": 1093,
|
||||
"created_at": "2023-06-11T23:00:16.743650Z",
|
||||
"updated_at": "2023-06-11T23:00:16.743687Z",
|
||||
"is_weight": false,
|
||||
"category": "Mobility",
|
||||
"name": "Lacrosse Ball"
|
||||
},
|
||||
{
|
||||
"id": 1094,
|
||||
"created_at": "2023-06-11T23:00:16.744876Z",
|
||||
"updated_at": "2023-06-11T23:00:16.744905Z",
|
||||
"is_weight": false,
|
||||
"category": "Surfaces",
|
||||
"name": "Bench"
|
||||
},
|
||||
{
|
||||
"id": 1095,
|
||||
"created_at": "2023-06-11T23:00:16.746362Z",
|
||||
"updated_at": "2023-06-11T23:00:16.746391Z",
|
||||
"is_weight": true,
|
||||
"category": "Weights",
|
||||
"name": "Barbell"
|
||||
},
|
||||
{
|
||||
"id": 1096,
|
||||
"created_at": "2023-06-11T23:00:16.747581Z",
|
||||
"updated_at": "2023-06-11T23:00:16.747618Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Pull-Up Bar"
|
||||
},
|
||||
{
|
||||
"id": 1097,
|
||||
"created_at": "2023-06-11T23:00:16.748547Z",
|
||||
"updated_at": "2023-06-11T23:00:16.748572Z",
|
||||
"is_weight": true,
|
||||
"category": "",
|
||||
"name": "Plate"
|
||||
},
|
||||
{
|
||||
"id": 1098,
|
||||
"created_at": "2023-06-11T23:00:16.749551Z",
|
||||
"updated_at": "2023-06-11T23:00:16.749584Z",
|
||||
"is_weight": true,
|
||||
"category": "Bands",
|
||||
"name": "Resistance Band"
|
||||
},
|
||||
{
|
||||
"id": 1099,
|
||||
"created_at": "2023-06-11T23:00:16.750466Z",
|
||||
"updated_at": "2023-06-11T23:00:16.750493Z",
|
||||
"is_weight": true,
|
||||
"category": "Weights",
|
||||
"name": "Medicine Ball"
|
||||
},
|
||||
{
|
||||
"id": 1100,
|
||||
"created_at": "2023-06-11T23:00:16.751132Z",
|
||||
"updated_at": "2023-06-11T23:00:16.751148Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Horizontal Leg Press Machine"
|
||||
},
|
||||
{
|
||||
"id": 1101,
|
||||
"created_at": "2023-06-11T23:00:16.751708Z",
|
||||
"updated_at": "2023-06-11T23:00:16.751725Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Battle Ropes"
|
||||
},
|
||||
{
|
||||
"id": 1102,
|
||||
"created_at": "2023-06-11T23:00:16.752239Z",
|
||||
"updated_at": "2023-06-11T23:00:16.752254Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Leg Press Machine"
|
||||
},
|
||||
{
|
||||
"id": 1103,
|
||||
"created_at": "2023-06-11T23:00:16.752770Z",
|
||||
"updated_at": "2023-06-11T23:00:16.752785Z",
|
||||
"is_weight": true,
|
||||
"category": "Other",
|
||||
"name": "Cable Resistance Machine"
|
||||
},
|
||||
{
|
||||
"id": 1104,
|
||||
"created_at": "2023-06-11T23:00:16.753276Z",
|
||||
"updated_at": "2023-06-11T23:00:16.753291Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Partner"
|
||||
},
|
||||
{
|
||||
"id": 1105,
|
||||
"created_at": "2023-06-11T23:00:16.753777Z",
|
||||
"updated_at": "2023-06-11T23:00:16.753791Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Leg Extension Machine"
|
||||
},
|
||||
{
|
||||
"id": 1106,
|
||||
"created_at": "2023-06-11T23:00:16.754288Z",
|
||||
"updated_at": "2023-06-11T23:00:16.754302Z",
|
||||
"is_weight": false,
|
||||
"category": "Surfaces",
|
||||
"name": "Wall"
|
||||
},
|
||||
{
|
||||
"id": 1107,
|
||||
"created_at": "2023-06-11T23:00:16.754782Z",
|
||||
"updated_at": "2023-06-11T23:00:16.754797Z",
|
||||
"is_weight": true,
|
||||
"category": "Weights",
|
||||
"name": "Plates"
|
||||
},
|
||||
{
|
||||
"id": 1108,
|
||||
"created_at": "2023-06-11T23:00:16.755276Z",
|
||||
"updated_at": "2023-06-11T23:00:16.755291Z",
|
||||
"is_weight": true,
|
||||
"category": "Bands",
|
||||
"name": "Miniband"
|
||||
},
|
||||
{
|
||||
"id": 1109,
|
||||
"created_at": "2023-06-11T23:00:16.755769Z",
|
||||
"updated_at": "2023-06-11T23:00:16.755784Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Agility Ladder"
|
||||
},
|
||||
{
|
||||
"id": 1110,
|
||||
"created_at": "2023-06-11T23:00:16.756257Z",
|
||||
"updated_at": "2023-06-11T23:00:16.756272Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Pec Deck / Reverse Fly Machine"
|
||||
},
|
||||
{
|
||||
"id": 1111,
|
||||
"created_at": "2023-06-11T23:00:16.756790Z",
|
||||
"updated_at": "2023-06-11T23:00:16.756807Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Chest Supported Row Machine"
|
||||
},
|
||||
{
|
||||
"id": 1112,
|
||||
"created_at": "2023-06-11T23:00:16.757376Z",
|
||||
"updated_at": "2023-06-11T23:00:16.757393Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Lat Pull Down Machine"
|
||||
},
|
||||
{
|
||||
"id": 1113,
|
||||
"created_at": "2023-06-11T23:00:16.757953Z",
|
||||
"updated_at": "2023-06-11T23:00:16.757969Z",
|
||||
"is_weight": true,
|
||||
"category": "Weights",
|
||||
"name": "EZ Bar"
|
||||
},
|
||||
{
|
||||
"id": 1114,
|
||||
"created_at": "2023-06-11T23:00:16.758520Z",
|
||||
"updated_at": "2023-06-11T23:00:16.758536Z",
|
||||
"is_weight": false,
|
||||
"category": "Surfaces",
|
||||
"name": "Stability Ball"
|
||||
},
|
||||
{
|
||||
"id": 1115,
|
||||
"created_at": "2023-06-11T23:00:16.759018Z",
|
||||
"updated_at": "2023-06-11T23:00:16.759033Z",
|
||||
"is_weight": false,
|
||||
"category": "Mobility",
|
||||
"name": "Dowel"
|
||||
},
|
||||
{
|
||||
"id": 1116,
|
||||
"created_at": "2023-06-11T23:00:16.760471Z",
|
||||
"updated_at": "2023-06-11T23:00:16.760489Z",
|
||||
"is_weight": false,
|
||||
"category": "Mobility",
|
||||
"name": "PVC Pipe"
|
||||
},
|
||||
{
|
||||
"id": 1117,
|
||||
"created_at": "2023-06-11T23:00:16.761033Z",
|
||||
"updated_at": "2023-06-11T23:00:16.761047Z",
|
||||
"is_weight": false,
|
||||
"category": "Mobility",
|
||||
"name": "Foam Roll"
|
||||
},
|
||||
{
|
||||
"id": 1118,
|
||||
"created_at": "2023-06-11T23:00:16.761537Z",
|
||||
"updated_at": "2023-06-11T23:00:16.761552Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Seated Chest Press Machine"
|
||||
},
|
||||
{
|
||||
"id": 1119,
|
||||
"created_at": "2023-06-11T23:00:16.762040Z",
|
||||
"updated_at": "2023-06-11T23:00:16.762055Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Tricep Rope"
|
||||
},
|
||||
{
|
||||
"id": 1120,
|
||||
"created_at": "2023-06-11T23:00:16.762531Z",
|
||||
"updated_at": "2023-06-11T23:00:16.762544Z",
|
||||
"is_weight": false,
|
||||
"category": "Surfaces",
|
||||
"name": "Chair"
|
||||
},
|
||||
{
|
||||
"id": 1121,
|
||||
"created_at": "2023-06-11T23:00:16.763016Z",
|
||||
"updated_at": "2023-06-11T23:00:16.763031Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Seated Shoulder Press Machine"
|
||||
},
|
||||
{
|
||||
"id": 1122,
|
||||
"created_at": "2023-06-11T23:00:16.763508Z",
|
||||
"updated_at": "2023-06-11T23:00:16.763522Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Leg Curl Seated Machine"
|
||||
},
|
||||
{
|
||||
"id": 1123,
|
||||
"created_at": "2023-06-11T23:00:16.763995Z",
|
||||
"updated_at": "2023-06-11T23:00:16.764010Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Seated Calf Raise Machine"
|
||||
},
|
||||
{
|
||||
"id": 1124,
|
||||
"created_at": "2023-06-11T23:00:16.764475Z",
|
||||
"updated_at": "2023-06-11T23:00:16.764488Z",
|
||||
"is_weight": true,
|
||||
"category": "Weights",
|
||||
"name": "Trap Bar"
|
||||
},
|
||||
{
|
||||
"id": 1125,
|
||||
"created_at": "2023-06-11T23:00:16.764897Z",
|
||||
"updated_at": "2023-06-11T23:00:16.764910Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Ab Wheel"
|
||||
},
|
||||
{
|
||||
"id": 1126,
|
||||
"created_at": "2023-06-11T23:00:16.765319Z",
|
||||
"updated_at": "2023-06-11T23:00:16.765332Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Leg Curl Prone Machine"
|
||||
},
|
||||
{
|
||||
"id": 1127,
|
||||
"created_at": "2023-06-11T23:00:16.765741Z",
|
||||
"updated_at": "2023-06-11T23:00:16.765753Z",
|
||||
"is_weight": true,
|
||||
"category": "Weights",
|
||||
"name": "Weighted Vest"
|
||||
},
|
||||
{
|
||||
"id": 1128,
|
||||
"created_at": "2023-06-11T23:00:16.766161Z",
|
||||
"updated_at": "2023-06-11T23:00:16.766173Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Slider"
|
||||
},
|
||||
{
|
||||
"id": 1129,
|
||||
"created_at": "2023-06-11T23:00:16.766577Z",
|
||||
"updated_at": "2023-06-11T23:00:16.766590Z",
|
||||
"is_weight": false,
|
||||
"category": "Cardio",
|
||||
"name": "Treadmill"
|
||||
},
|
||||
{
|
||||
"id": 1130,
|
||||
"created_at": "2023-06-11T23:00:16.766998Z",
|
||||
"updated_at": "2023-06-11T23:00:16.767010Z",
|
||||
"is_weight": false,
|
||||
"category": "Other",
|
||||
"name": "Machine"
|
||||
},
|
||||
{
|
||||
"id": 1131,
|
||||
"created_at": "2023-06-11T23:00:16.767415Z",
|
||||
"updated_at": "2023-06-11T23:00:16.767428Z",
|
||||
"is_weight": false,
|
||||
"category": "Cardio",
|
||||
"name": "Stair Climber"
|
||||
},
|
||||
{
|
||||
"id": 1132,
|
||||
"created_at": "2023-06-11T23:00:16.767834Z",
|
||||
"updated_at": "2023-06-11T23:00:16.767845Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Assisted Chin up / Dips Machine"
|
||||
},
|
||||
{
|
||||
"id": 1133,
|
||||
"created_at": "2023-06-11T23:00:16.768250Z",
|
||||
"updated_at": "2023-06-11T23:00:16.768261Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Bicep Preacher Curl Machine"
|
||||
},
|
||||
{
|
||||
"id": 1134,
|
||||
"created_at": "2023-06-11T23:00:16.768666Z",
|
||||
"updated_at": "2023-06-11T23:00:16.768678Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Hack Squat Machine"
|
||||
},
|
||||
{
|
||||
"id": 1135,
|
||||
"created_at": "2023-06-11T23:00:16.769086Z",
|
||||
"updated_at": "2023-06-11T23:00:16.769098Z",
|
||||
"is_weight": false,
|
||||
"category": "Cardio",
|
||||
"name": "Jump Rope"
|
||||
},
|
||||
{
|
||||
"id": 1136,
|
||||
"created_at": "2023-06-11T23:00:16.769515Z",
|
||||
"updated_at": "2023-06-11T23:00:16.769527Z",
|
||||
"is_weight": true,
|
||||
"category": "Machine",
|
||||
"name": "Hack Squat 45 Degree Machine"
|
||||
},
|
||||
{
|
||||
"id": 1137,
|
||||
"created_at": "2023-06-11T23:00:16.770084Z",
|
||||
"updated_at": "2023-06-11T23:00:16.770096Z",
|
||||
"is_weight": false,
|
||||
"category": "Cardio",
|
||||
"name": "Bike"
|
||||
},
|
||||
{
|
||||
"id": 1138,
|
||||
"created_at": "2023-06-11T23:00:16.770500Z",
|
||||
"updated_at": "2023-06-11T23:00:16.770512Z",
|
||||
"is_weight": false,
|
||||
"category": "Cardio",
|
||||
"name": "Rower"
|
||||
},
|
||||
{
|
||||
"id": 1139,
|
||||
"created_at": "2023-06-11T23:00:16.770915Z",
|
||||
"updated_at": "2023-06-11T23:00:16.770928Z",
|
||||
"is_weight": false,
|
||||
"category": "Cardio",
|
||||
"name": "Elliptical"
|
||||
}
|
||||
]
|
||||
53422
iphone/Werkout_ios/JSON/Exercises.json
Normal file
53422
iphone/Werkout_ios/JSON/Exercises.json
Normal file
File diff suppressed because it is too large
Load Diff
16
iphone/Werkout_ios/JSON/PlannedWorkouts.json
Normal file
16
iphone/Werkout_ios/JSON/PlannedWorkouts.json
Normal file
@@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"created_at": "2023-07-02T04:16:34.262272Z",
|
||||
"updated_at": "2023-07-02T04:16:34.262315Z",
|
||||
"on_date": "2023-07-02",
|
||||
"workout": {
|
||||
"id": 22,
|
||||
"created_at": "2023-06-26T02:53:56.101972Z",
|
||||
"updated_at": "2023-06-26T02:53:56.106136Z",
|
||||
"name": "Aaaa",
|
||||
"description": "description",
|
||||
"registered_user": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
107
iphone/Werkout_ios/JSON/PreviewData.swift
Normal file
107
iphone/Werkout_ios/JSON/PreviewData.swift
Normal file
@@ -0,0 +1,107 @@
|
||||
//
|
||||
// PreviewData.swift
|
||||
// Werkout_ios
|
||||
//
|
||||
// Created by Trey Tartt on 6/14/23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
class PreviewData {
|
||||
class func workout() -> Workout {
|
||||
let filepath = Bundle.main.path(forResource: "WorkoutDetail", ofType: "json")!
|
||||
let data = try! Data(NSData(contentsOfFile: filepath))
|
||||
let workout = try! JSONDecoder().decode(Workout.self, from: data)
|
||||
return workout
|
||||
}
|
||||
|
||||
class func allWorkouts() -> [Workout] {
|
||||
if let filepath = Bundle.main.path(forResource: "AllWorkouts", ofType: "json") {
|
||||
do {
|
||||
let data = try Data(NSData(contentsOfFile: filepath))
|
||||
let workout = try JSONDecoder().decode([Workout].self, from: data)
|
||||
return workout
|
||||
} catch {
|
||||
print(error)
|
||||
fatalError()
|
||||
}
|
||||
} else {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
|
||||
class func parseExercises() -> [Exercise] {
|
||||
if let filepath = Bundle.main.path(forResource: "Exercises", ofType: "json") {
|
||||
do {
|
||||
let data = try Data(NSData(contentsOfFile: filepath))
|
||||
let exercises = try JSONDecoder().decode([Exercise].self, from: data)
|
||||
return exercises
|
||||
} catch {
|
||||
print(error)
|
||||
fatalError()
|
||||
}
|
||||
} else {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
|
||||
class func parseEquipment() -> [Equipment] {
|
||||
if let filepath = Bundle.main.path(forResource: "Equipment", ofType: "json") {
|
||||
do {
|
||||
let data = try Data(NSData(contentsOfFile: filepath))
|
||||
let equipment = try JSONDecoder().decode([Equipment].self, from: data)
|
||||
return equipment
|
||||
} catch {
|
||||
print(error)
|
||||
fatalError()
|
||||
}
|
||||
} else {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
|
||||
class func parseMuscle() -> [Muscle] {
|
||||
if let filepath = Bundle.main.path(forResource: "AllMuscles", ofType: "json") {
|
||||
do {
|
||||
let data = try Data(NSData(contentsOfFile: filepath))
|
||||
let muscles = try JSONDecoder().decode([Muscle].self, from: data)
|
||||
return muscles
|
||||
} catch {
|
||||
print(error)
|
||||
fatalError()
|
||||
}
|
||||
} else {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
|
||||
class func parseRegisterdUser() -> RegisteredUser {
|
||||
if let filepath = Bundle.main.path(forResource: "RegisteredUser", ofType: "json") {
|
||||
do {
|
||||
let data = try Data(NSData(contentsOfFile: filepath))
|
||||
let muscles = try JSONDecoder().decode(RegisteredUser.self, from: data)
|
||||
return muscles
|
||||
} catch {
|
||||
print(error)
|
||||
fatalError()
|
||||
}
|
||||
} else {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
|
||||
class func parseCompletedWorkouts() -> [CompletedWorkout] {
|
||||
if let filepath = Bundle.main.path(forResource: "CompletedWorkouts", ofType: "json") {
|
||||
do {
|
||||
let data = try Data(NSData(contentsOfFile: filepath))
|
||||
let muscles = try JSONDecoder().decode([CompletedWorkout].self, from: data)
|
||||
return muscles
|
||||
} catch {
|
||||
print(error)
|
||||
fatalError()
|
||||
}
|
||||
} else {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
}
|
||||
11
iphone/Werkout_ios/JSON/RegisteredUser.json
Normal file
11
iphone/Werkout_ios/JSON/RegisteredUser.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": 1,
|
||||
"email_address": "user1@user1.com",
|
||||
"created_at": "2023-06-11T22:09:52.419314Z",
|
||||
"updated_at": "2023-06-11T22:09:52.419342Z",
|
||||
"first_name": "test1_fist",
|
||||
"last_name": "test1_last",
|
||||
"image": "",
|
||||
"nick_name": "NickkkkName",
|
||||
"token": "8f10a5b8c7532f7f8602193767b46a2625a85c52"
|
||||
}
|
||||
221
iphone/Werkout_ios/JSON/WorkoutDetail.json
Normal file
221
iphone/Werkout_ios/JSON/WorkoutDetail.json
Normal file
@@ -0,0 +1,221 @@
|
||||
{
|
||||
"id": 21,
|
||||
"name": "Ipad",
|
||||
"description": "description",
|
||||
"supersets": [
|
||||
{
|
||||
"id": 1,
|
||||
"exercises": [
|
||||
{
|
||||
"id": 1,
|
||||
"exercise": {
|
||||
"id": 520,
|
||||
"muscles": [
|
||||
{
|
||||
"id": 7264,
|
||||
"name": "hip flexor",
|
||||
"created_at": "2023-06-14T17:05:39.760515Z",
|
||||
"updated_at": "2023-06-14T17:05:39.761372Z",
|
||||
"exercise": 520,
|
||||
"muscle": 16
|
||||
},
|
||||
{
|
||||
"id": 7265,
|
||||
"name": "glutes",
|
||||
"created_at": "2023-06-14T17:05:39.762342Z",
|
||||
"updated_at": "2023-06-14T17:05:39.762814Z",
|
||||
"exercise": 520,
|
||||
"muscle": 4
|
||||
}
|
||||
],
|
||||
"equipment": [
|
||||
{
|
||||
"id": 941,
|
||||
"name": "Wall",
|
||||
"created_at": "2023-06-13T02:28:04.289213Z",
|
||||
"updated_at": "2023-06-13T02:28:04.290354Z",
|
||||
"exercise": 520,
|
||||
"equipment": 1106
|
||||
}
|
||||
],
|
||||
"audio_url": "exercise_audio/1-Step_Wall_March.m4a",
|
||||
"video_url": "exercise_videos/1-Step_Wall_March.mp4",
|
||||
"created_at": "2023-06-11T22:50:19.020826Z",
|
||||
"updated_at": "2023-06-11T22:50:19.020834Z",
|
||||
"name": "1-Step Wall March",
|
||||
"description": "Keeping a tall posture, lean forward with both arms straight ahead, palms on the wall. While pushing your toes back through the floor, drive one knee up towards your ribs. Pause, then quickly repeat the same movement with the opposite leg. ",
|
||||
"side": "",
|
||||
"is_two_dumbbells": false,
|
||||
"is_trackable_distance": false,
|
||||
"is_alternating": true,
|
||||
"is_weight": true,
|
||||
"is_distance": false,
|
||||
"is_duration": true,
|
||||
"is_reps": true,
|
||||
"joints_used": "ankle,knee,hip,wrist,shoulder,elbow",
|
||||
"movement_patterns": "plyometric",
|
||||
"equipment_required": "Wall",
|
||||
"muscle_groups": "hip flexor,glutes",
|
||||
"synonyms": ""
|
||||
},
|
||||
"created_at": "2023-07-17T18:56:36.984049Z",
|
||||
"updated_at": "2023-07-17T19:06:00.534838Z",
|
||||
"weight": null,
|
||||
"reps": null,
|
||||
"duration": 30,
|
||||
"order": 1,
|
||||
"superset": 1
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"exercise": {
|
||||
"id": 992,
|
||||
"muscles": [
|
||||
{
|
||||
"id": 7270,
|
||||
"name": "hamstrings",
|
||||
"created_at": "2023-06-14T17:05:39.769351Z",
|
||||
"updated_at": "2023-06-14T17:05:39.769758Z",
|
||||
"exercise": 992,
|
||||
"muscle": 6
|
||||
},
|
||||
{
|
||||
"id": 7271,
|
||||
"name": "glutes",
|
||||
"created_at": "2023-06-14T17:05:39.770480Z",
|
||||
"updated_at": "2023-06-14T17:05:39.771111Z",
|
||||
"exercise": 992,
|
||||
"muscle": 4
|
||||
}
|
||||
],
|
||||
"equipment": [
|
||||
{
|
||||
"id": 944,
|
||||
"name": "Dumbbell",
|
||||
"created_at": "2023-06-13T02:28:04.294180Z",
|
||||
"updated_at": "2023-06-13T02:28:04.294658Z",
|
||||
"exercise": 992,
|
||||
"equipment": 1091
|
||||
}
|
||||
],
|
||||
"audio_url": "exercise_audio/2_Dumbbell_Single-Leg_Deadlift.m4a",
|
||||
"video_url": "exercise_videos/2_Dumbbell_Single-Leg_Deadlift.mp4",
|
||||
"created_at": "2023-06-11T22:50:19.197099Z",
|
||||
"updated_at": "2023-06-11T22:50:19.197105Z",
|
||||
"name": "2 Dumbbell Single-Leg Deadlift",
|
||||
"description": "Holding a dumbbell in each hand, with your right leg on the ground, hinge at your hips and let your body see-saw down until you are parallel with the ground. Snap back to a standing position.",
|
||||
"side": "right_leg",
|
||||
"is_two_dumbbells": true,
|
||||
"is_trackable_distance": false,
|
||||
"is_alternating": false,
|
||||
"is_weight": true,
|
||||
"is_distance": false,
|
||||
"is_duration": true,
|
||||
"is_reps": true,
|
||||
"joints_used": "ankle,lumbar spine,hip,knee,wrist",
|
||||
"movement_patterns": "lower pull,lower pull - hip hinge",
|
||||
"equipment_required": "Dumbbell",
|
||||
"muscle_groups": "hamstrings,glutes",
|
||||
"synonyms": "2 Dumbbell Single Leg Deadlift"
|
||||
},
|
||||
"created_at": "2023-07-17T18:56:36.984523Z",
|
||||
"updated_at": "2023-07-17T19:06:00.535334Z",
|
||||
"weight": 30,
|
||||
"reps": null,
|
||||
"duration": null,
|
||||
"order": 2,
|
||||
"superset": 1
|
||||
}
|
||||
],
|
||||
"created_at": "2023-07-17T18:56:36.983159Z",
|
||||
"updated_at": "2023-07-17T19:06:00.534027Z",
|
||||
"name": "test superste",
|
||||
"rounds": 3,
|
||||
"order": 1,
|
||||
"workout": 21
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"exercises": [
|
||||
{
|
||||
"id": 3,
|
||||
"exercise": {
|
||||
"id": 992,
|
||||
"muscles": [
|
||||
{
|
||||
"id": 7270,
|
||||
"name": "hamstrings",
|
||||
"created_at": "2023-06-14T17:05:39.769351Z",
|
||||
"updated_at": "2023-06-14T17:05:39.769758Z",
|
||||
"exercise": 992,
|
||||
"muscle": 6
|
||||
},
|
||||
{
|
||||
"id": 7271,
|
||||
"name": "glutes",
|
||||
"created_at": "2023-06-14T17:05:39.770480Z",
|
||||
"updated_at": "2023-06-14T17:05:39.771111Z",
|
||||
"exercise": 992,
|
||||
"muscle": 4
|
||||
}
|
||||
],
|
||||
"equipment": [
|
||||
{
|
||||
"id": 944,
|
||||
"name": "Dumbbell",
|
||||
"created_at": "2023-06-13T02:28:04.294180Z",
|
||||
"updated_at": "2023-06-13T02:28:04.294658Z",
|
||||
"exercise": 992,
|
||||
"equipment": 1091
|
||||
}
|
||||
],
|
||||
"audio_url": "exercise_audio/2_Dumbbell_Single-Leg_Deadlift.m4a",
|
||||
"video_url": "exercise_videos/2_Dumbbell_Single-Leg_Deadlift.mp4",
|
||||
"created_at": "2023-06-11T22:50:19.197099Z",
|
||||
"updated_at": "2023-06-11T22:50:19.197105Z",
|
||||
"name": "2 Dumbbell Single-Leg Deadlift",
|
||||
"description": "Holding a dumbbell in each hand, with your right leg on the ground, hinge at your hips and let your body see-saw down until you are parallel with the ground. Snap back to a standing position.",
|
||||
"side": "right_leg",
|
||||
"is_two_dumbbells": true,
|
||||
"is_trackable_distance": false,
|
||||
"is_alternating": false,
|
||||
"is_weight": true,
|
||||
"is_distance": false,
|
||||
"is_duration": true,
|
||||
"is_reps": true,
|
||||
"joints_used": "ankle,lumbar spine,hip,knee,wrist",
|
||||
"movement_patterns": "lower pull,lower pull - hip hinge",
|
||||
"equipment_required": "Dumbbell",
|
||||
"muscle_groups": "hamstrings,glutes",
|
||||
"synonyms": "2 Dumbbell Single Leg Deadlift"
|
||||
},
|
||||
"created_at": "2023-07-17T18:58:35.585418Z",
|
||||
"updated_at": "2023-07-17T18:58:35.585435Z",
|
||||
"weight": 11,
|
||||
"reps": null,
|
||||
"duration": null,
|
||||
"order": 1,
|
||||
"superset": 2
|
||||
}
|
||||
],
|
||||
"created_at": "2023-07-17T18:58:35.584036Z",
|
||||
"updated_at": "2023-07-17T19:03:57.175639Z",
|
||||
"name": "two",
|
||||
"rounds": 3,
|
||||
"order": 2,
|
||||
"workout": 21
|
||||
}
|
||||
],
|
||||
"registered_user": {
|
||||
"id": 2,
|
||||
"first_name": "test2_first",
|
||||
"last_name": "test2_last",
|
||||
"image": "",
|
||||
"nick_name": null
|
||||
},
|
||||
"male_videos": [],
|
||||
"female_videos": [
|
||||
"videos/Recover_8.mp4"
|
||||
],
|
||||
"both_videos": []
|
||||
}
|
||||
Reference in New Issue
Block a user