Skip to content

Commit

Permalink
add: technical stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ho2ri2s committed Jun 9, 2020
1 parent 390c18b commit 42e8803
Show file tree
Hide file tree
Showing 7 changed files with 366 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .idea/dictionaries/dictionary.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions lib/model/technical_stack/language.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// TODO: 言語増やす
enum Language {
Swift,
Kotlin,
}
9 changes: 9 additions & 0 deletions lib/model/technical_stack/proficiency.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// TODO: できるできないとかを増やす
import 'package:freezed_annotation/freezed_annotation.dart';

enum Proficiency {
@JsonValue('GOOD')
Good,
@JsonValue('BAD')
Bad
}
11 changes: 11 additions & 0 deletions lib/model/technical_stack/stack.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// TODO: 増やす
import 'package:freezed_annotation/freezed_annotation.dart';

enum Stack {
@JsonValue('IOS')
iOS,
@JsonValue('ANDROID')
Android,
@JsonValue('Serverside')
Serverside,
}
22 changes: 22 additions & 0 deletions lib/model/technical_stack/technical_stack.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import 'package:flutter/foundation.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:morning_weakers/model/technical_stack/language.dart';
import 'package:morning_weakers/model/technical_stack/proficiency.dart';
import 'package:morning_weakers/model/technical_stack/stack.dart';

part 'technical_stack.freezed.dart';

part 'technical_stack.g.dart';

@freezed
abstract class TechnicalStack with _$TechnicalStack {
const factory TechnicalStack({
@required String id,
@required Stack stack,
List<Language> language,
@required Proficiency proficiency,
int priority,
}) = _TechnicalStack;

factory TechnicalStack.fromJson(Map<String, dynamic> json) => _$TechnicalStackFromJson(json);
}
240 changes: 240 additions & 0 deletions lib/model/technical_stack/technical_stack.freezed.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions lib/model/technical_stack/technical_stack.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 42e8803

Please sign in to comment.