Jaelan Barnes has been sentenced to up to four years in prison after being convicted of assault with a deadly weapon and false imprisonment.