from .models import (CurrentDevVersion, AllDevCmdDefineAndVersion,
                     AllProtocolDefinAndVersion, AllProtocolVersion)
from rest_framework import serializers


class AllProtocolVersionSerializer(serializers.ModelSerializer):
    class Meta:
        model = AllProtocolVersion
        fields = '__all__'


class AllDevCmdDefineAndVersionSerializer(serializers.ModelSerializer):
    class Meta:
        model = AllDevCmdDefineAndVersion
        fields = '__all__'


class AllProtocolDefinAndVersionSerializer(serializers.ModelSerializer):
    class Meta:
        model = AllProtocolDefinAndVersion
        fields = '__all__'
    

class CurrentDevVersionSerializer(serializers.ModelSerializer):
    class Meta:
        model = CurrentDevVersion
        fields = '__all__'
